@alwith/module-chat 0.6.17 → 0.6.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (557) hide show
  1. package/dist/activity-host.js +1 -1
  2. package/dist/agent/application-client.d.ts +30 -0
  3. package/dist/agent/application-client.js +1 -0
  4. package/dist/agent/client.d.ts +125 -0
  5. package/dist/agent/client.js +1 -0
  6. package/dist/agent/custom-model-effort.d.ts +4 -0
  7. package/dist/agent/custom-model-effort.js +1 -0
  8. package/dist/agent/fork-title.d.ts +1 -0
  9. package/dist/agent/fork-title.js +1 -0
  10. package/dist/agent/image-request.d.ts +6 -0
  11. package/dist/agent/image-request.js +1 -0
  12. package/dist/agent/image-tools.d.ts +9 -0
  13. package/dist/agent/image-tools.js +1 -0
  14. package/dist/agent/input-config.d.ts +17 -0
  15. package/dist/agent/input-config.js +1 -0
  16. package/dist/agent/input-modes/chat.d.ts +10 -0
  17. package/dist/agent/input-modes/chat.js +1 -0
  18. package/dist/agent/input-modes/execution-meta.d.ts +1 -0
  19. package/dist/agent/input-modes/execution-meta.js +1 -0
  20. package/dist/agent/input-modes/image-context.d.ts +1 -0
  21. package/dist/agent/input-modes/image-context.js +1 -0
  22. package/dist/agent/input-modes/image.d.ts +14 -0
  23. package/dist/agent/input-modes/image.js +1 -0
  24. package/dist/agent/input-modes/index.d.ts +46 -0
  25. package/dist/agent/input-modes/index.js +1 -0
  26. package/dist/agent/project-path.d.ts +2 -0
  27. package/dist/agent/project-path.js +1 -0
  28. package/dist/agent/request-error.d.ts +3 -0
  29. package/dist/agent/request-error.js +1 -0
  30. package/dist/agent/session-list-refresh.d.ts +2 -0
  31. package/dist/agent/session-list-refresh.js +1 -0
  32. package/dist/app-reference.js +1 -1
  33. package/dist/application-tools.d.ts +1 -1
  34. package/dist/application-tools.js +1 -1
  35. package/dist/approval/choice-elicitation-form.js +1 -1
  36. package/dist/approval/choice-schema.js +1 -1
  37. package/dist/approval/permission-options.js +1 -1
  38. package/dist/approval/permission-view.js +1 -1
  39. package/dist/approval/schema-elicitation-form.js +1 -1
  40. package/dist/approval/url-elicitation-card.js +1 -1
  41. package/dist/chunk-02qwd1yq.js +2 -0
  42. package/dist/chunk-052wfeys.js +2 -0
  43. package/dist/chunk-06wtwk7b.js +2 -0
  44. package/dist/chunk-0jpzztpz.js +2 -0
  45. package/dist/chunk-0z7gy762.js +2 -0
  46. package/dist/{chunk-3h3cmjh2.js → chunk-113maskf.js} +2 -2
  47. package/dist/{chunk-bqbpded2.js → chunk-15m908ph.js} +2 -2
  48. package/dist/{chunk-rvmbvv03.js → chunk-1d29gnb2.js} +2 -2
  49. package/dist/chunk-1fadxh2z.js +2 -0
  50. package/dist/{chunk-dcevaazr.js → chunk-1gr60c40.js} +2 -2
  51. package/dist/chunk-1npqxk6m.js +2 -0
  52. package/dist/{chunk-97tgc9ym.js → chunk-26w51q10.js} +2 -2
  53. package/dist/{chunk-zq18ffn0.js → chunk-2aw505xv.js} +2 -2
  54. package/dist/{chunk-twbeapwa.js → chunk-2gwegefd.js} +2 -2
  55. package/dist/chunk-2hkj5qxh.js +2 -0
  56. package/dist/{chunk-y7n8m9st.js → chunk-2ncdext6.js} +2 -2
  57. package/dist/chunk-30a5fgk9.js +2 -0
  58. package/dist/chunk-337hq36y.js +2 -0
  59. package/dist/{chunk-2pahy4hs.js → chunk-34mq2dbm.js} +2 -2
  60. package/dist/{chunk-3174p320.js → chunk-3g9n4bk2.js} +2 -2
  61. package/dist/chunk-3tp8fe70.js +2 -0
  62. package/dist/{chunk-fzze5xcw.js → chunk-3tvq6xr2.js} +2 -2
  63. package/dist/chunk-3tzh25vq.js +2 -0
  64. package/dist/{chunk-netp71kb.js → chunk-44r55va6.js} +2 -2
  65. package/dist/{chunk-qdgsg6v4.js → chunk-4jp1d558.js} +2 -2
  66. package/dist/chunk-4sa0m3w5.js +2 -0
  67. package/dist/chunk-4sfxcw58.js +6 -0
  68. package/dist/{chunk-6es8tgxc.js → chunk-4wm5emgf.js} +2 -2
  69. package/dist/{chunk-x6f51rt2.js → chunk-51x80v4h.js} +2 -2
  70. package/dist/{chunk-xmpaqxer.js → chunk-5c42mfat.js} +2 -2
  71. package/dist/{chunk-j6r44m9g.js → chunk-5gn8xw58.js} +2 -2
  72. package/dist/chunk-5jq3xg3q.js +2 -0
  73. package/dist/{chunk-9z9jffth.js → chunk-64apxzn7.js} +2 -2
  74. package/dist/{chunk-trh02gwn.js → chunk-6e84zbgs.js} +2 -2
  75. package/dist/chunk-6f06hbsk.js +2 -0
  76. package/dist/chunk-6g553fkh.js +2 -0
  77. package/dist/{chunk-h3xn4d48.js → chunk-6j1x3gny.js} +2 -2
  78. package/dist/chunk-73e9vpm9.js +2 -0
  79. package/dist/{chunk-twx75z08.js → chunk-74b70n1g.js} +2 -2
  80. package/dist/chunk-7b5ryhwh.js +2 -0
  81. package/dist/{chunk-sct2h2dm.js → chunk-7d1wnjw5.js} +2 -2
  82. package/dist/chunk-7evd34gw.js +3 -0
  83. package/dist/{chunk-fd72zzqm.js → chunk-7g11pcm4.js} +3 -3
  84. package/dist/{chunk-ct0xqakr.js → chunk-7p7fxgdb.js} +2 -2
  85. package/dist/chunk-7pwdjhg8.js +2 -0
  86. package/dist/chunk-80sbwjrr.js +2 -0
  87. package/dist/chunk-816tez3v.js +2 -0
  88. package/dist/{chunk-vypkwd0x.js → chunk-81n37a11.js} +2 -2
  89. package/dist/{chunk-11cbk1je.js → chunk-84p483n0.js} +2 -2
  90. package/dist/{chunk-8djjctdj.js → chunk-84zzf0ys.js} +2 -2
  91. package/dist/{chunk-hn6f6yrp.js → chunk-88ysxbdh.js} +2 -2
  92. package/dist/{chunk-aaqk0jrt.js → chunk-8hygfx41.js} +2 -2
  93. package/dist/{chunk-c05dxz9x.js → chunk-8q5zwkry.js} +2 -2
  94. package/dist/chunk-8rb896tq.js +2 -0
  95. package/dist/{chunk-9072bnjm.js → chunk-90847w64.js} +2 -2
  96. package/dist/{chunk-ha5xrc0a.js → chunk-97pn8v17.js} +2 -2
  97. package/dist/chunk-9k58vckd.js +2 -0
  98. package/dist/chunk-9x08kyf6.js +2 -0
  99. package/dist/{chunk-b9q9d2jh.js → chunk-agdkhyaj.js} +3 -3
  100. package/dist/chunk-ajp19sh9.js +2 -0
  101. package/dist/chunk-ak196z4y.js +2 -0
  102. package/dist/chunk-ane53rqa.js +2 -0
  103. package/dist/{chunk-qm1z1zcw.js → chunk-arm9x6kc.js} +2 -2
  104. package/dist/{chunk-veb90k24.js → chunk-ath5nv2w.js} +2 -2
  105. package/dist/chunk-bba9qej8.js +2 -0
  106. package/dist/{chunk-wyndwb68.js → chunk-bf7sgpzq.js} +2 -2
  107. package/dist/chunk-bg0vkt53.js +2 -0
  108. package/dist/{chunk-csgkwny6.js → chunk-bqhbksy2.js} +2 -2
  109. package/dist/chunk-brv52tgj.js +2 -0
  110. package/dist/chunk-bve6cykn.js +2 -0
  111. package/dist/chunk-bw3bpr6m.js +2 -0
  112. package/dist/chunk-c2h4wr7g.js +7 -0
  113. package/dist/{chunk-gk0tq3n9.js → chunk-ch8e8a32.js} +2 -2
  114. package/dist/{chunk-hqykt9hr.js → chunk-cydnp9mm.js} +2 -2
  115. package/dist/{chunk-4gq7ye1a.js → chunk-d0s10qy5.js} +2 -2
  116. package/dist/chunk-d6cfxqzx.js +2 -0
  117. package/dist/{chunk-1e7gk302.js → chunk-d9mj74pb.js} +2 -2
  118. package/dist/{chunk-x0h0g1ma.js → chunk-dd9k5bbt.js} +2 -2
  119. package/dist/{chunk-7nehhgej.js → chunk-dheg4bs2.js} +2 -2
  120. package/dist/{chunk-620q6hmz.js → chunk-dr5swvaa.js} +2 -2
  121. package/dist/chunk-dsf2x63w.js +7 -0
  122. package/dist/chunk-e1fzfaqj.js +2 -0
  123. package/dist/{chunk-bnpwhf5c.js → chunk-e1zsnc8z.js} +2 -2
  124. package/dist/{chunk-tkbs5ev1.js → chunk-er5wxkt2.js} +2 -2
  125. package/dist/chunk-esbgn8q0.js +2 -0
  126. package/dist/chunk-etvdqkvb.js +4 -0
  127. package/dist/{chunk-segftqt4.js → chunk-evpjxbzm.js} +2 -2
  128. package/dist/{chunk-2ptyqcf3.js → chunk-ex063jn9.js} +2 -2
  129. package/dist/chunk-eynwjzqp.js +2 -0
  130. package/dist/{chunk-05eg5p11.js → chunk-f78jd8xh.js} +2 -2
  131. package/dist/chunk-f9xtcxfb.js +2 -0
  132. package/dist/{chunk-d1n4w7hn.js → chunk-fdmbfq9g.js} +2 -2
  133. package/dist/chunk-fkkk1fza.js +2 -0
  134. package/dist/{chunk-f2jc13bq.js → chunk-ftsnryz8.js} +2 -2
  135. package/dist/{chunk-m2x1s408.js → chunk-fvxxzgrc.js} +2 -2
  136. package/dist/chunk-fwqpwbd8.js +2 -0
  137. package/dist/{chunk-7eqtvqrn.js → chunk-fyxetwxv.js} +2 -2
  138. package/dist/{chunk-q2z9w661.js → chunk-g1nck6pp.js} +2 -2
  139. package/dist/{chunk-7919s3et.js → chunk-gpv1dc5y.js} +2 -2
  140. package/dist/chunk-gs0b02g2.js +2 -0
  141. package/dist/{chunk-vnr9rqs6.js → chunk-gttw4rmx.js} +3 -3
  142. package/dist/chunk-gwskdhaw.js +2 -0
  143. package/dist/chunk-h7xjw0p4.js +2 -0
  144. package/dist/{chunk-j5njgy7p.js → chunk-h82jte5p.js} +2 -2
  145. package/dist/{chunk-hwvr7b0j.js → chunk-hfghqddp.js} +2 -2
  146. package/dist/{chunk-vextf7ba.js → chunk-hj05zh7h.js} +2 -2
  147. package/dist/chunk-hnkde8me.js +2 -0
  148. package/dist/{chunk-5wsyenq9.js → chunk-hqt5j789.js} +2 -2
  149. package/dist/chunk-j39bhfsp.js +2 -0
  150. package/dist/{chunk-n13y99dj.js → chunk-j3g21ext.js} +2 -2
  151. package/dist/chunk-j6000jts.js +2 -0
  152. package/dist/{chunk-7h3f7s97.js → chunk-j78kgyff.js} +5 -5
  153. package/dist/{chunk-yaxsff9s.js → chunk-jgqt7k0h.js} +2 -2
  154. package/dist/chunk-jpr2y0y3.js +2 -0
  155. package/dist/{chunk-tz8wmvs9.js → chunk-jpr5ewnh.js} +2 -2
  156. package/dist/{chunk-00z352ph.js → chunk-k4a3p16c.js} +2 -2
  157. package/dist/{chunk-k86843av.js → chunk-k5nd3vyq.js} +2 -2
  158. package/dist/chunk-k883x8fv.js +2 -0
  159. package/dist/{chunk-t96rf4pg.js → chunk-kj2zk46g.js} +2 -2
  160. package/dist/chunk-kkqrxb9w.js +3 -0
  161. package/dist/{chunk-qtft8hnb.js → chunk-kn792h8n.js} +2 -2
  162. package/dist/chunk-kqvgmkvr.js +2 -0
  163. package/dist/chunk-m087n233.js +3 -0
  164. package/dist/{chunk-adc8e01w.js → chunk-ma6ycen5.js} +2 -2
  165. package/dist/{chunk-4hz2ax5w.js → chunk-ma7thf1j.js} +2 -2
  166. package/dist/{chunk-t94rfs41.js → chunk-mahb3t97.js} +2 -2
  167. package/dist/chunk-mf0k3xd4.js +3 -0
  168. package/dist/chunk-mhv75thj.js +0 -0
  169. package/dist/chunk-n811d65m.js +4 -0
  170. package/dist/chunk-n96z8etk.js +2 -0
  171. package/dist/{chunk-9hmqa3cs.js → chunk-nbgw51b6.js} +2 -2
  172. package/dist/{chunk-82xjggwn.js → chunk-ne4b53kn.js} +2 -2
  173. package/dist/chunk-nhkm2gr7.js +1 -0
  174. package/dist/{chunk-3karja82.js → chunk-nn30qzhx.js} +2 -2
  175. package/dist/{chunk-ex20n22v.js → chunk-nqt9gyz9.js} +2 -2
  176. package/dist/{chunk-qwtmwj5m.js → chunk-p3gawvqr.js} +2 -2
  177. package/dist/chunk-p5hk14fk.js +2 -0
  178. package/dist/{chunk-ev9tkjgy.js → chunk-pc11a2w0.js} +3 -3
  179. package/dist/chunk-ph7srp7q.js +2 -0
  180. package/dist/chunk-phee3jn9.js +2 -0
  181. package/dist/{chunk-qnbr2cmg.js → chunk-pqz2471h.js} +2 -2
  182. package/dist/chunk-psndz2rs.js +2 -0
  183. package/dist/{chunk-1xaskqdj.js → chunk-pxv38ttf.js} +2 -2
  184. package/dist/{chunk-wv127h6d.js → chunk-pxzj3ae7.js} +2 -2
  185. package/dist/{chunk-9rf3qecr.js → chunk-q1yz3t9z.js} +2 -2
  186. package/dist/chunk-q4c6f84f.js +2 -0
  187. package/dist/chunk-q7rq46qc.js +2 -0
  188. package/dist/{chunk-d924by6g.js → chunk-qk1yqepm.js} +2 -2
  189. package/dist/{chunk-5ymq8y72.js → chunk-qma11tpm.js} +3 -3
  190. package/dist/chunk-qmcr5f9k.js +2 -0
  191. package/dist/chunk-r7hwgk2v.js +2 -0
  192. package/dist/{chunk-3yq0a0f1.js → chunk-rg9ckzpr.js} +2 -2
  193. package/dist/{chunk-41v0g6sw.js → chunk-rhe4w638.js} +2 -2
  194. package/dist/chunk-rkqptd9w.js +2 -0
  195. package/dist/{chunk-p0d6rr6q.js → chunk-rp7tnbss.js} +2 -2
  196. package/dist/chunk-rv3k0kfr.js +2 -0
  197. package/dist/chunk-rz9fnphz.js +2 -0
  198. package/dist/chunk-s6medm3z.js +2 -0
  199. package/dist/{chunk-4qghztvg.js → chunk-s9mejb9v.js} +2 -2
  200. package/dist/{chunk-z38xf1rw.js → chunk-scdj02m8.js} +3 -3
  201. package/dist/chunk-sfgegn3p.js +2 -0
  202. package/dist/chunk-sjb5stzq.js +2 -0
  203. package/dist/chunk-sp2ny9ak.js +2 -0
  204. package/dist/chunk-stv8pr4v.js +2 -0
  205. package/dist/chunk-swkcmtme.js +2 -0
  206. package/dist/chunk-sz993t5e.js +2 -0
  207. package/dist/{chunk-nszq1xrj.js → chunk-t5ff3cn7.js} +2 -2
  208. package/dist/{chunk-xbp4r3n4.js → chunk-ta6rbxh5.js} +3 -3
  209. package/dist/chunk-tc6d0v1y.js +2 -0
  210. package/dist/chunk-tdvx2n5m.js +2 -0
  211. package/dist/chunk-tftgnw1w.js +2 -0
  212. package/dist/{chunk-11z072sz.js → chunk-thaa1n4f.js} +2 -2
  213. package/dist/chunk-tyrzaz6c.js +2 -0
  214. package/dist/{chunk-4dabfz24.js → chunk-vg1y693r.js} +3 -3
  215. package/dist/chunk-vg9p0hvk.js +2 -0
  216. package/dist/chunk-vm81n2c0.js +2 -0
  217. package/dist/chunk-vt7dkgtx.js +2 -0
  218. package/dist/chunk-w1wr14da.js +2 -0
  219. package/dist/{chunk-gee5kh24.js → chunk-w1yrsbw1.js} +2 -2
  220. package/dist/{chunk-kcra1mgf.js → chunk-wbjf9maj.js} +2 -2
  221. package/dist/{chunk-y1fpm5r2.js → chunk-wew3t005.js} +2 -2
  222. package/dist/{chunk-gxjg94y5.js → chunk-wpacvdsv.js} +2 -2
  223. package/dist/{chunk-vqkwvrxc.js → chunk-wq47c4ws.js} +2 -2
  224. package/dist/{chunk-tjfjvzv5.js → chunk-x2wcwpw3.js} +2 -2
  225. package/dist/chunk-x3v10a71.js +2 -0
  226. package/dist/{chunk-bsra0akd.js → chunk-x49qjrbk.js} +2 -2
  227. package/dist/chunk-x4jm2eh9.js +4 -0
  228. package/dist/{chunk-fvz27k62.js → chunk-xfzmxq3g.js} +2 -2
  229. package/dist/{chunk-a1k3ffay.js → chunk-xnc0175v.js} +2 -2
  230. package/dist/chunk-xnx8p8c0.js +4 -0
  231. package/dist/{chunk-gbc31gbf.js → chunk-xqb4thy8.js} +2 -2
  232. package/dist/{chunk-pvd09dx5.js → chunk-xspnhgq6.js} +2 -2
  233. package/dist/chunk-xwwjj45a.js +2 -0
  234. package/dist/chunk-xx29efrs.js +4 -0
  235. package/dist/{chunk-vkc8ssbv.js → chunk-xx7t8r87.js} +2 -2
  236. package/dist/chunk-xyffk47k.js +2 -0
  237. package/dist/{chunk-mhxgws9c.js → chunk-y3mx5sf0.js} +2 -2
  238. package/dist/{chunk-xtwpbvdx.js → chunk-yb5yhh8t.js} +2 -2
  239. package/dist/chunk-ye7ecnej.js +2 -0
  240. package/dist/{chunk-sg681jnt.js → chunk-ynxb5xqz.js} +4 -4
  241. package/dist/{chunk-8weq6t3q.js → chunk-z107z7dt.js} +2 -2
  242. package/dist/{chunk-9eme3n5c.js → chunk-z6x70w62.js} +2 -2
  243. package/dist/{chunk-2ss8m0ja.js → chunk-zjk12jjm.js} +4 -4
  244. package/dist/{chunk-64wzvf7k.js → chunk-zw2x5ztr.js} +2 -2
  245. package/dist/{chunk-mgsxsaj1.js → chunk-zxfx7psd.js} +2 -2
  246. package/dist/{chunk-9xhw5zmq.js → chunk-zyn0ys4m.js} +2 -2
  247. package/dist/{chunk-5ygdb72w.js → chunk-zzjth6f2.js} +2 -2
  248. package/dist/client.d.ts +9 -30
  249. package/dist/client.js +1 -1
  250. package/dist/codex/activity-group.js +1 -1
  251. package/dist/codex/artifact-links.d.ts +9 -0
  252. package/dist/codex/artifact-links.js +1 -0
  253. package/dist/codex/assistant-message.js +1 -1
  254. package/dist/codex/async-question-card.js +1 -1
  255. package/dist/codex/disclosure-state.js +1 -1
  256. package/dist/codex/edited-files-card.js +1 -1
  257. package/dist/codex/image-view-activity.js +1 -1
  258. package/dist/codex/markdown-renderer.js +1 -1
  259. package/dist/codex/navigation-audio.js +1 -1
  260. package/dist/codex/navigation-preview.js +1 -1
  261. package/dist/codex/navigation-rail.js +1 -1
  262. package/dist/codex/patch-view.js +1 -1
  263. package/dist/codex/plan.js +1 -1
  264. package/dist/codex/timeline-virtualizer.js +1 -1
  265. package/dist/codex/turn-activity.js +1 -1
  266. package/dist/codex/user-message.js +1 -1
  267. package/dist/codex/virtualized-turn-list.js +1 -1
  268. package/dist/collections/collection-emoji.js +1 -1
  269. package/dist/collections/collection-menu.js +1 -1
  270. package/dist/collections/collection-panel.js +1 -1
  271. package/dist/collections/collections.js +1 -1
  272. package/dist/collections/host.js +1 -1
  273. package/dist/collections/locales.js +1 -1
  274. package/dist/collections/model.js +1 -1
  275. package/dist/collections/store.js +1 -1
  276. package/dist/composer/completion-filter.js +1 -1
  277. package/dist/composer/completion-menu.js +1 -1
  278. package/dist/composer/completion-trigger.js +1 -1
  279. package/dist/composer/effort-slider.js +1 -1
  280. package/dist/composer/inline-document.js +1 -1
  281. package/dist/composer/inline-dom.js +1 -1
  282. package/dist/composer/menu-radio.js +1 -1
  283. package/dist/composer/model-select.js +1 -1
  284. package/dist/composer/permission-mode-select.js +1 -1
  285. package/dist/composer/prompt-input-attachments.js +1 -1
  286. package/dist/composer/prompt-input-clipboard.js +1 -1
  287. package/dist/composer/prompt-input-context.js +1 -1
  288. package/dist/composer/prompt-input-inline.js +1 -1
  289. package/dist/composer/prompt-input-textarea.js +1 -1
  290. package/dist/composer/prompt-input.js +1 -1
  291. package/dist/conversation/action-card.js +1 -1
  292. package/dist/conversation/composer/app-mentions.js +1 -1
  293. package/dist/conversation/composer/apps-menu.js +1 -1
  294. package/dist/conversation/composer/composer-menu.js +1 -1
  295. package/dist/conversation/composer/composer.js +1 -1
  296. package/dist/conversation/composer/config-options.js +1 -1
  297. package/dist/conversation/composer/context.js +1 -1
  298. package/dist/conversation/composer/drafts.js +1 -1
  299. package/dist/conversation/composer/file-items.js +1 -1
  300. package/dist/conversation/composer/long-text.js +1 -1
  301. package/dist/conversation/composer/mention-chips.js +1 -1
  302. package/dist/conversation/composer/mention-uri.js +1 -1
  303. package/dist/conversation/composer/model-menu.js +1 -1
  304. package/dist/conversation/composer/pasted-text-attachment.js +1 -1
  305. package/dist/conversation/composer/permission-mode-menu.js +1 -1
  306. package/dist/conversation/composer/prediction.js +1 -1
  307. package/dist/conversation/composer/prompt-history.js +1 -1
  308. package/dist/conversation/composer/slash-command-button.js +1 -1
  309. package/dist/conversation/composer/submit-button.js +1 -1
  310. package/dist/conversation/composer/usage-meter.js +1 -1
  311. package/dist/conversation/connection-notice.js +1 -1
  312. package/dist/conversation/context.js +1 -1
  313. package/dist/conversation/conversation-body.js +1 -1
  314. package/dist/conversation/conversation-search.js +1 -1
  315. package/dist/conversation/conversation-view.js +1 -1
  316. package/dist/conversation/conversation.js +1 -1
  317. package/dist/conversation/diff-modal.js +1 -1
  318. package/dist/conversation/draft-project-picker.js +1 -1
  319. package/dist/conversation/session-actions.js +1 -1
  320. package/dist/conversation/subagent-sessions.js +1 -1
  321. package/dist/conversation/subagent-tasks.js +1 -1
  322. package/dist/conversation/types.d.ts +1 -0
  323. package/dist/desktop/desktop-composer.d.ts +13 -0
  324. package/dist/desktop/desktop-composer.js +1 -0
  325. package/dist/desktop/desktop.d.ts +7 -0
  326. package/dist/desktop/desktop.js +1 -0
  327. package/dist/desktop/draft-model-select.d.ts +10 -0
  328. package/dist/desktop/draft-model-select.js +1 -0
  329. package/dist/desktop/load-image.d.ts +1 -0
  330. package/dist/desktop/load-image.js +1 -0
  331. package/dist/desktop/model-catalog.d.ts +10 -0
  332. package/dist/desktop/model-catalog.js +1 -0
  333. package/dist/desktop/model-recovery.d.ts +10 -0
  334. package/dist/desktop/model-recovery.js +1 -0
  335. package/dist/desktop/model-settings-action.d.ts +2 -0
  336. package/dist/desktop/model-settings-action.js +1 -0
  337. package/dist/desktop/native-file-drop.d.ts +8 -0
  338. package/dist/desktop/native-file-drop.js +1 -0
  339. package/dist/generated/commands.d.ts +103 -48
  340. package/dist/generated/commands.js +1 -1
  341. package/dist/image-lightbox.js +1 -1
  342. package/dist/image-preview-dialog.js +1 -1
  343. package/dist/image.js +1 -1
  344. package/dist/lib/app-reference.js +1 -1
  345. package/dist/lib/application-metadata.js +1 -1
  346. package/dist/lib/chat-path.d.ts +4 -0
  347. package/dist/lib/chat-path.js +1 -0
  348. package/dist/lib/code-highlighter.js +1 -1
  349. package/dist/lib/file-url.js +1 -1
  350. package/dist/lib/fuzzy.js +1 -1
  351. package/dist/lib/group-blocks.js +1 -1
  352. package/dist/lib/image-encode.js +1 -1
  353. package/dist/lib/limits.js +1 -1
  354. package/dist/lib/markdown-parser.js +1 -1
  355. package/dist/lib/markdown-rules.js +1 -1
  356. package/dist/lib/model-name.js +1 -1
  357. package/dist/lib/pointer-centered-zoom.js +1 -1
  358. package/dist/lib/prepare-prompt-files.js +1 -1
  359. package/dist/lib/reference-presentation.js +1 -1
  360. package/dist/lib/stream-style.js +1 -1
  361. package/dist/lib/streaming-markdown.js +1 -1
  362. package/dist/lib/tool-artifacts.js +1 -1
  363. package/dist/locales.d.ts +210 -0
  364. package/dist/locales.js +1 -1
  365. package/dist/mermaid/diagram.d.ts +3 -0
  366. package/dist/mermaid/diagram.js +1 -0
  367. package/dist/mermaid/export.d.ts +6 -0
  368. package/dist/mermaid/export.js +1 -0
  369. package/dist/mermaid/index.d.ts +1 -0
  370. package/dist/mermaid/index.js +1 -0
  371. package/dist/mermaid/preview.d.ts +11 -0
  372. package/dist/mermaid/preview.js +1 -0
  373. package/dist/oauth/claude-login.js +1 -1
  374. package/dist/oauth.js +1 -1
  375. package/dist/plugins/catalog-header.js +1 -1
  376. package/dist/plugins/catalog-skeleton.js +1 -1
  377. package/dist/plugins/host.js +1 -1
  378. package/dist/plugins/locales.js +1 -1
  379. package/dist/plugins/new-chat-directory.js +1 -1
  380. package/dist/plugins/pane.js +1 -1
  381. package/dist/plugins/panel-item.js +1 -1
  382. package/dist/plugins/plugin-detail-page.js +1 -1
  383. package/dist/plugins/plugin-icon.js +1 -1
  384. package/dist/plugins/plugin-icons.js +1 -1
  385. package/dist/plugins/plugins-page.js +1 -1
  386. package/dist/plugins/plugins.js +1 -1
  387. package/dist/plugins/read-skill-document.js +1 -1
  388. package/dist/plugins/skill-document.js +1 -1
  389. package/dist/plugins/skills-tab.js +1 -1
  390. package/dist/plugins/store.d.ts +1 -0
  391. package/dist/plugins/store.js +1 -1
  392. package/dist/plugins/toolbox-layout.js +1 -1
  393. package/dist/reference-projection.js +1 -1
  394. package/dist/search/chat-search.js +1 -1
  395. package/dist/search/codex-source-matches.js +1 -1
  396. package/dist/search/dom-matches.js +1 -1
  397. package/dist/search/find-bar.js +1 -1
  398. package/dist/search/literal-matches.js +1 -1
  399. package/dist/session-list/account-menu.js +1 -1
  400. package/dist/session-list/activity-list.js +1 -1
  401. package/dist/session-list/archived-sessions.js +1 -1
  402. package/dist/session-list/help-menu.js +1 -1
  403. package/dist/session-list/highlight.js +1 -1
  404. package/dist/session-list/host.js +1 -1
  405. package/dist/session-list/hover-info-card.js +1 -1
  406. package/dist/session-list/locales.js +1 -1
  407. package/dist/session-list/navigation-controls.js +1 -1
  408. package/dist/session-list/navigation-header.js +1 -1
  409. package/dist/session-list/navigation-store.js +1 -1
  410. package/dist/session-list/navigation-tabs.js +1 -1
  411. package/dist/session-list/navigation.js +1 -1
  412. package/dist/session-list/overflow-marquee.js +1 -1
  413. package/dist/session-list/platform.js +1 -1
  414. package/dist/session-list/row-stop-button.js +1 -1
  415. package/dist/session-list/session-groups.js +1 -1
  416. package/dist/session-list/session-info-card.js +1 -1
  417. package/dist/session-list/session-list.js +1 -1
  418. package/dist/session-list/session-row.js +1 -1
  419. package/dist/session-list/session-state-dot.js +1 -1
  420. package/dist/session-list/session-state-menu.js +1 -1
  421. package/dist/session-list/shortcut-hint.js +1 -1
  422. package/dist/session-list/shortcut.js +1 -1
  423. package/dist/session-list/sidebar-overlay.js +1 -1
  424. package/dist/session-list/trailing-swap.js +1 -1
  425. package/dist/session-list/use-activity-notification.js +1 -1
  426. package/dist/session-list/use-activity-preview.js +1 -1
  427. package/dist/session-list/use-cmd-held.js +1 -1
  428. package/dist/session-list/use-project-sessions.js +1 -1
  429. package/dist/session-list/virtual-session-rows.js +1 -1
  430. package/dist/session-timeline/activity-group.js +1 -1
  431. package/dist/session-timeline/activity-projection.js +1 -1
  432. package/dist/session-timeline/assistant-content.js +1 -1
  433. package/dist/session-timeline/assistant-image-references.js +1 -1
  434. package/dist/session-timeline/assistant-turn.js +1 -1
  435. package/dist/session-timeline/async-questions.js +1 -1
  436. package/dist/session-timeline/edited-files-card.js +1 -1
  437. package/dist/session-timeline/history-timeline.js +1 -1
  438. package/dist/session-timeline/host.d.ts +3 -0
  439. package/dist/session-timeline/host.js +1 -1
  440. package/dist/session-timeline/image-generation-progress.js +1 -1
  441. package/dist/session-timeline/navigation-rail.js +1 -1
  442. package/dist/session-timeline/plan.js +1 -1
  443. package/dist/session-timeline/question-reply.js +1 -1
  444. package/dist/session-timeline/resource-content.d.ts +1 -0
  445. package/dist/session-timeline/resource-content.js +1 -1
  446. package/dist/session-timeline/session-timeline.js +1 -1
  447. package/dist/session-timeline/timeline-registry.js +1 -1
  448. package/dist/session-timeline/turn-activity.js +1 -1
  449. package/dist/session-timeline/turn-error.js +1 -1
  450. package/dist/session-timeline/turn-retry.js +1 -1
  451. package/dist/session-timeline/turn-time.js +1 -1
  452. package/dist/session-timeline/turns.js +1 -1
  453. package/dist/session-timeline/use-timeline-scroll.js +1 -1
  454. package/dist/session-timeline/user-message.js +1 -1
  455. package/dist/settings/codex-account-card.js +1 -1
  456. package/dist/settings/login-card.js +1 -1
  457. package/dist/settings/model-alias-settings.js +1 -1
  458. package/dist/settings/model-aliases.js +1 -1
  459. package/dist/settings/provider-logos.d.ts +4 -0
  460. package/dist/settings/provider-logos.js +1 -1
  461. package/dist/settings/provider-section.js +1 -1
  462. package/dist/settings/providers-port.js +1 -1
  463. package/dist/settings/providers.d.ts +1 -1
  464. package/dist/settings/providers.js +1 -1
  465. package/dist/settings/settings-bridge.js +1 -1
  466. package/dist/settings/settings.js +1 -1
  467. package/native/darwin-arm64/THIRD_PARTY_NOTICES.md +8 -8
  468. package/native/darwin-arm64/artifact.json +1 -1
  469. package/native/darwin-arm64/libalwith_native_chat.dylib +0 -0
  470. package/native/win32-x64/THIRD_PARTY_NOTICES.md +7 -7
  471. package/native/win32-x64/alwith_native_chat.dll +0 -0
  472. package/native/win32-x64/artifact.json +1 -1
  473. package/package.json +10 -4
  474. package/dist/chunk-0307kp7e.js +0 -2
  475. package/dist/chunk-04vnhbvc.js +0 -2
  476. package/dist/chunk-0yqb54zg.js +0 -2
  477. package/dist/chunk-1renytb3.js +0 -3
  478. package/dist/chunk-2drcx544.js +0 -2
  479. package/dist/chunk-2sxxr6j8.js +0 -2
  480. package/dist/chunk-2tc9kn50.js +0 -2
  481. package/dist/chunk-3t5cksae.js +0 -2
  482. package/dist/chunk-4h07zyxp.js +0 -2
  483. package/dist/chunk-4jy404m1.js +0 -2
  484. package/dist/chunk-4n4gap45.js +0 -2
  485. package/dist/chunk-4zz6dnqa.js +0 -2
  486. package/dist/chunk-5m45z6qm.js +0 -4
  487. package/dist/chunk-6xds0dkq.js +0 -2
  488. package/dist/chunk-7cv512vy.js +0 -2
  489. package/dist/chunk-7hwg9r4y.js +0 -2
  490. package/dist/chunk-856bck34.js +0 -2
  491. package/dist/chunk-95n1cpnj.js +0 -2
  492. package/dist/chunk-9h77fcpn.js +0 -2
  493. package/dist/chunk-9pcx42v8.js +0 -2
  494. package/dist/chunk-9rvf1am9.js +0 -2
  495. package/dist/chunk-ehmdmfs5.js +0 -2
  496. package/dist/chunk-f0kgxjp1.js +0 -2
  497. package/dist/chunk-fjk1g303.js +0 -2
  498. package/dist/chunk-fjseqvmx.js +0 -1
  499. package/dist/chunk-gez0k8zs.js +0 -7
  500. package/dist/chunk-gjfhvaxn.js +0 -2
  501. package/dist/chunk-h4xxyhpn.js +0 -4
  502. package/dist/chunk-hmet2d96.js +0 -2
  503. package/dist/chunk-hwmpcj3y.js +0 -2
  504. package/dist/chunk-j9snfndd.js +0 -2
  505. package/dist/chunk-jz6zecb7.js +0 -2
  506. package/dist/chunk-kp7qa98m.js +0 -2
  507. package/dist/chunk-ncwf6pjj.js +0 -3
  508. package/dist/chunk-nh9gk065.js +0 -2
  509. package/dist/chunk-nxj8m5bm.js +0 -2
  510. package/dist/chunk-pn5ghg65.js +0 -2
  511. package/dist/chunk-pwcw4zp2.js +0 -2
  512. package/dist/chunk-q3vvg0de.js +0 -2
  513. package/dist/chunk-qkw2nhsr.js +0 -4
  514. package/dist/chunk-rncx5gxz.js +0 -2
  515. package/dist/chunk-s5c2ha8t.js +0 -2
  516. package/dist/chunk-sp411z4y.js +0 -7
  517. package/dist/chunk-sqm2vsf5.js +0 -2
  518. package/dist/chunk-t4dsmqdq.js +0 -2
  519. package/dist/chunk-thhtbvj1.js +0 -2
  520. package/dist/chunk-tvbgjmtw.js +0 -3
  521. package/dist/chunk-v0y5fepf.js +0 -3
  522. package/dist/chunk-vctq22tq.js +0 -2
  523. package/dist/chunk-vepv6ktb.js +0 -2
  524. package/dist/chunk-vet6snkp.js +0 -4
  525. package/dist/chunk-vjmgh1q9.js +0 -2
  526. package/dist/chunk-vmg3evhm.js +0 -2
  527. package/dist/chunk-w22ch68s.js +0 -2
  528. package/dist/chunk-wdacgfwp.js +0 -2
  529. package/dist/chunk-xmks1g9y.js +0 -2
  530. package/dist/chunk-xqwbn2ph.js +0 -2
  531. package/dist/chunk-y6kxhkjm.js +0 -2
  532. package/dist/chunk-yy1pm240.js +0 -2
  533. package/dist/chunk-z7ehwkcq.js +0 -2
  534. package/dist/chunk-zah0npdy.js +0 -2
  535. package/dist/chunk-zah37d5q.js +0 -2
  536. package/dist/chunk-zcwsc0gx.js +0 -2
  537. /package/native/darwin-arm64/licenses/{bumpalo-3.20.3 → bumpalo-3.20.4}/LICENSE-APACHE +0 -0
  538. /package/native/darwin-arm64/licenses/{bumpalo-3.20.3 → bumpalo-3.20.4}/LICENSE-MIT +0 -0
  539. /package/native/darwin-arm64/licenses/{cc-1.11.1 → cc-1.11.2}/LICENSE-APACHE +0 -0
  540. /package/native/darwin-arm64/licenses/{cc-1.11.1 → cc-1.11.2}/LICENSE-MIT +0 -0
  541. /package/native/darwin-arm64/licenses/{mio-1.2.4 → mio-1.2.5}/LICENSE +0 -0
  542. /package/native/darwin-arm64/licenses/{nix-0.31.3 → nix-0.32.0}/LICENSE +0 -0
  543. /package/native/darwin-arm64/licenses/{opencode-ai-models-0.0.124 → opencode-ai-models-0.0.136}/LICENSE +0 -0
  544. /package/native/darwin-arm64/licenses/{rand-0.10.3 → rand-0.10.4}/LICENSE-APACHE +0 -0
  545. /package/native/darwin-arm64/licenses/{rand-0.10.3 → rand-0.10.4}/LICENSE-MIT +0 -0
  546. /package/native/darwin-arm64/licenses/{rustls-webpki-0.103.16 → rustls-webpki-0.103.17}/LICENSE +0 -0
  547. /package/native/darwin-arm64/licenses/{zip-9.5.1 → zip-9.6.0}/LICENSE +0 -0
  548. /package/native/win32-x64/licenses/{bumpalo-3.20.3 → bumpalo-3.20.4}/LICENSE-APACHE +0 -0
  549. /package/native/win32-x64/licenses/{bumpalo-3.20.3 → bumpalo-3.20.4}/LICENSE-MIT +0 -0
  550. /package/native/win32-x64/licenses/{cc-1.11.1 → cc-1.11.2}/LICENSE-APACHE +0 -0
  551. /package/native/win32-x64/licenses/{cc-1.11.1 → cc-1.11.2}/LICENSE-MIT +0 -0
  552. /package/native/win32-x64/licenses/{mio-1.2.4 → mio-1.2.5}/LICENSE +0 -0
  553. /package/native/win32-x64/licenses/{opencode-ai-models-0.0.124 → opencode-ai-models-0.0.136}/LICENSE +0 -0
  554. /package/native/win32-x64/licenses/{rand-0.10.3 → rand-0.10.4}/LICENSE-APACHE +0 -0
  555. /package/native/win32-x64/licenses/{rand-0.10.3 → rand-0.10.4}/LICENSE-MIT +0 -0
  556. /package/native/win32-x64/licenses/{rustls-webpki-0.103.16 → rustls-webpki-0.103.17}/LICENSE +0 -0
  557. /package/native/win32-x64/licenses/{zip-9.5.1 → zip-9.6.0}/LICENSE +0 -0
@@ -1 +1 @@
1
- import{kr,p,E}from"./chunk-f0kgxjp1.js";export{kr as ActivityHostProvider,E as ActivityMarkdown,p as useActivityHost};
1
+ import{ks,c,O}from"./chunk-1fadxh2z.js";export{ks as ActivityHostProvider,O as ActivityMarkdown,c as useActivityHost};
@@ -0,0 +1,30 @@
1
+ import { type Agent, type AgentRequest, type AppsInstalledParams, type ClientOptions as AdapterOptions, CodexClient as AdapterClient, type CodexClientState, type SessionOperation, type SessionRequestOptions } from "@nyssance/codex-acp-v2/client";
2
+ import { type ApplicationTools, type ApplicationToolSelection } from "../application-tools";
3
+ export type ClientOptions = AdapterOptions & {
4
+ applicationTools?: ApplicationTools;
5
+ };
6
+ export declare class ApplicationClient<State extends CodexClientState = CodexClientState> extends AdapterClient<State> {
7
+ private readonly applicationRegistry;
8
+ private readonly toolSelection;
9
+ constructor(openPort: ConstructorParameters<typeof AdapterClient>[0], options: ClientOptions, extraState?: Omit<State, keyof CodexClientState>);
10
+ protected applicationToolsFor(selection: ApplicationToolSelection): Promise<readonly import("../application-tools").ApplicationTool[]> | readonly import("../application-tools").ApplicationTool[];
11
+ protected requestContext(cwd: string, operation: SessionOperation, options: SessionRequestOptions): ReturnType<AdapterClient<State>["requestContext"]>;
12
+ protected acceptsPendingRequest(request: AgentRequest): boolean;
13
+ protected handleNotification(method: string, params: unknown): boolean;
14
+ protected handleAgentRequest(agent: Agent, request: AgentRequest): boolean;
15
+ protected onDisconnected(): void;
16
+ protected onSessionDropped(id: string): void;
17
+ cancel(id: string): Promise<void>;
18
+ close(id: string): Promise<void>;
19
+ stopSession(id: string): Promise<void>;
20
+ installedApps(params?: AppsInstalledParams): Promise<{
21
+ apps: {
22
+ id: string;
23
+ runtimeName: string | null;
24
+ enabled: boolean;
25
+ callable: boolean;
26
+ iconUrl?: string | null | undefined;
27
+ iconUrlDark?: string | null | undefined;
28
+ }[];
29
+ }>;
30
+ }
@@ -0,0 +1 @@
1
+ import{lo}from"../chunk-j6000jts.js";import"../chunk-jpr5ewnh.js";import"../chunk-evpjxbzm.js";export{lo as ApplicationClient};
@@ -0,0 +1,125 @@
1
+ import type * as acp from "@agentclientprotocol/sdk/experimental/v2/unstable";
2
+ import { type RuntimeClient, type SessionRunState } from "@alwith/api";
3
+ import { type CodexClientState, type ForkOptions, type ForkOrigin, type NewSessionOptions, type PendingAction, type PromptOptions, type ReplayScope, type Session, type SessionOperation, type SessionRequestOptions, type SessionSummary } from "@nyssance/codex-acp-v2/client";
4
+ import type { ApplicationTool, ApplicationToolSelection } from "../application-tools";
5
+ import { type ImageSelection } from "../image";
6
+ import { ApplicationClient as CodexAcpClient, type ClientOptions as BaseClientOptions } from "./application-client";
7
+ import { type SessionInputConfig, type SessionInputConfigSnapshot } from "./input-config";
8
+ import { type InputMode } from "./input-modes";
9
+ export type { ForkOrigin, PendingAction };
10
+ export declare const NATIVE_MODEL_GROUP: {
11
+ readonly id: "chatgpt";
12
+ readonly name: "ChatGPT";
13
+ };
14
+ export type GatewayModel = {
15
+ id: string;
16
+ label?: string;
17
+ description?: string;
18
+ };
19
+ export type SessionModelListener = (sessionId: string, modelId: string, isGateway: boolean) => void;
20
+ export type Launch = {
21
+ engine: string;
22
+ [key: string]: unknown;
23
+ };
24
+ export type ClientOptions = BaseClientOptions & {
25
+ resolveModel?: (model: string | null, purpose: "session" | "draft") => Promise<string | null>;
26
+ imageService?: {
27
+ inputMode: (sessionId: string) => Promise<InputMode>;
28
+ selection: () => ImageSelection;
29
+ generateExternal: (selection: ImageSelection, prompt: string, images: string[], signal?: AbortSignal) => Promise<{
30
+ images: {
31
+ mimeType: string;
32
+ data: string;
33
+ }[];
34
+ }>;
35
+ };
36
+ };
37
+ export type DraftOwner = "main" | "chat";
38
+ export type AppState = CodexClientState & {
39
+ modelRecovery: Record<string, boolean>;
40
+ nativeModels: GatewayModel[];
41
+ sessionWindows: Record<string, DraftOwner>;
42
+ draftSessions: Record<string, DraftOwner>;
43
+ };
44
+ export declare class CodexClient extends CodexAcpClient<AppState> {
45
+ executeShell(sessionId: string, command: string): Promise<void>;
46
+ private readonly modelListeners;
47
+ private readonly confirmedModelListeners;
48
+ private savedModels;
49
+ private slotModels;
50
+ private slotTargets;
51
+ private slotVersions;
52
+ private readonly draftDirectoryIntents;
53
+ private readonly draftOperations;
54
+ private readonly gatewayModels;
55
+ private readonly configOwners;
56
+ private readonly openingOwners;
57
+ private readonly schedulingConfig;
58
+ private readonly replayRepairs;
59
+ private readonly accountRevocations;
60
+ private readonly accountRecoveries;
61
+ private readonly resolveModelOption;
62
+ constructor(openPort: () => Promise<RuntimeClient<Launch>>, options: ClientOptions);
63
+ private readonly imageTool;
64
+ private readonly imageService;
65
+ private readonly inputModes;
66
+ private readonly inputSelections;
67
+ readInputConfig(sessionId: string): Promise<SessionInputConfigSnapshot>;
68
+ writeInputConfig(sessionId: string, inputConfig: SessionInputConfig): Promise<SessionInputConfigSnapshot>;
69
+ private acceptInputConfig;
70
+ private readonly imageRequests;
71
+ prompt(id: string, prompt: acp.ContentBlock[], options?: PromptOptions): Promise<string>;
72
+ private promptImage;
73
+ protected promptMeta(id: string, options: PromptOptions): Record<string, unknown> | undefined;
74
+ private readonly promptImages;
75
+ promptWithImages(id: string, prompt: acp.ContentBlock[], options?: PromptOptions): Promise<string>;
76
+ protected applicationToolsFor(selection: ApplicationToolSelection): Promise<ApplicationTool[]>;
77
+ private releaseImages;
78
+ protected onDisconnected(): void;
79
+ cancel(id: string): Promise<void>;
80
+ close(id: string): Promise<void>;
81
+ stopSession(id: string): Promise<void>;
82
+ private setApp;
83
+ applyRunStates(sessions: SessionRunState[], source?: "snapshot" | "event"): void;
84
+ protected enqueueSession<T>(id: string, operation: () => Promise<T>, continueAfterFailure?: boolean): Promise<T>;
85
+ private customEffortChange;
86
+ private normalizeCustomEffort;
87
+ private writeCustomEffort;
88
+ protected afterSessionCreated(id: string): Promise<void>;
89
+ protected replay(id: string, cwd: string, options?: SessionRequestOptions): Promise<void>;
90
+ private replayWithEffort;
91
+ connect(): Promise<void>;
92
+ listProjectSessions(cwd: string): Promise<SessionSummary[]>;
93
+ newSession(cwd?: string, model?: string | null | NewSessionOptions, owner?: DraftOwner): Promise<string>;
94
+ private createNativeSession;
95
+ open(id: string, cwd: string, owner?: DraftOwner | SessionRequestOptions): Promise<void>;
96
+ private replayForOwner;
97
+ protected requestContext(cwd: string, operation: SessionOperation, options: SessionRequestOptions): ReturnType<CodexAcpClient<AppState>["requestContext"]>;
98
+ private requestModelContext;
99
+ protected recoverReplay(id: string, cwd: string, error: unknown, scope: ReplayScope): Promise<boolean>;
100
+ markAccountModelsUnavailable(ids: readonly string[]): void;
101
+ resumeModel(id: string, model: string): Promise<void>;
102
+ setConfig(id: string, configId: string, value: string | boolean, owner?: DraftOwner): Promise<void>;
103
+ protected onConfigChanged(id: string, configId: string, response: acp.SetSessionConfigOptionResponse): void;
104
+ private changeDraft;
105
+ prepareDraft(owner: DraftOwner, cwd: string | undefined, model?: string | null, nativeDefault?: boolean, inputMode?: InputMode): Promise<string>;
106
+ discardDraft(owner: string): Promise<void>;
107
+ transferDraft(id: string, owner: DraftOwner): Promise<void>;
108
+ private deleteEmptyDraft;
109
+ protected onDraftMaterialized(id: string): void;
110
+ protected onSessionDropped(id: string): void;
111
+ fork(id: string, cwd: string, lastTurnId?: string | ForkOptions): Promise<string>;
112
+ protected forkInternal(id: string, cwd: string, options: ForkOptions): Promise<string>;
113
+ protected onForked(id: string, response: acp.ForkSessionResponse): void;
114
+ protected onReplayed(id: string, response: acp.ResumeSessionResponse): void;
115
+ setModelSelections(models: Record<DraftOwner, string | null>): void;
116
+ onConfirmedModel(listener: (owner: DraftOwner, model: string) => void): () => void;
117
+ protected onSessionChanged(session: Session): void;
118
+ private followModel;
119
+ private activateSlot;
120
+ private bindSlot;
121
+ private confirmModel;
122
+ private resolveModel;
123
+ onSessionModel(listener: SessionModelListener): () => void;
124
+ private noteModel;
125
+ }
@@ -0,0 +1 @@
1
+ import{x,Ui}from"../chunk-vm81n2c0.js";import"../chunk-eynwjzqp.js";import"../chunk-vg9p0hvk.js";import"../chunk-4sfxcw58.js";import"../chunk-j6000jts.js";import"../chunk-jpr5ewnh.js";import"../chunk-sp2ny9ak.js";import"../chunk-gwskdhaw.js";import"../chunk-tftgnw1w.js";import"../chunk-bw3bpr6m.js";import"../chunk-tc6d0v1y.js";import"../chunk-30a5fgk9.js";import"../chunk-fwqpwbd8.js";import"../chunk-e1fzfaqj.js";import"../chunk-etvdqkvb.js";import"../chunk-evpjxbzm.js";import"../chunk-rv3k0kfr.js";export{Ui as CodexClient,x as NATIVE_MODEL_GROUP};
@@ -0,0 +1,4 @@
1
+ export declare function customModelEffort(model: string | null): {
2
+ value: string;
3
+ hidden: boolean;
4
+ } | null;
@@ -0,0 +1 @@
1
+ import{so}from"../chunk-eynwjzqp.js";export{so as customModelEffort};
@@ -0,0 +1 @@
1
+ export declare function forkTitle(source: string, occupied: Iterable<string>): string;
@@ -0,0 +1 @@
1
+ import{An}from"../chunk-tftgnw1w.js";export{An as forkTitle};
@@ -0,0 +1,6 @@
1
+ declare const IMAGE_REQUEST_ASPECTS: readonly ["auto", "1:1", "3:4", "9:16", "4:3", "16:9"];
2
+ export type ImageRequestAspect = (typeof IMAGE_REQUEST_ASPECTS)[number];
3
+ export declare const IMAGE_WORKFLOW_INSTRUCTIONS: string;
4
+ export declare function imageRequestAspect(value: unknown): ImageRequestAspect | undefined;
5
+ export declare function imageGenerationPrompt(prompt: string, aspect: ImageRequestAspect | undefined): string;
6
+ export {};
@@ -0,0 +1 @@
1
+ import{Gi,ao,zi}from"../chunk-4sfxcw58.js";export{Gi as IMAGE_WORKFLOW_INSTRUCTIONS,zi as imageGenerationPrompt,ao as imageRequestAspect};
@@ -0,0 +1,9 @@
1
+ import { type ImageSelection } from "../image";
2
+ import type { ClientOptions } from "./client";
3
+ import { type ImageRequestAspect } from "./image-request";
4
+ export type ImageToolRequest = {
5
+ selection: ImageSelection;
6
+ references: Map<string, string>;
7
+ aspect?: ImageRequestAspect;
8
+ };
9
+ export declare function createImageTool(service: NonNullable<ClientOptions["imageService"]>, request: (id: string) => ImageToolRequest | undefined): import("../application-tools").ApplicationTool;
@@ -0,0 +1 @@
1
+ import{Bi}from"../chunk-vg9p0hvk.js";import"../chunk-4sfxcw58.js";import"../chunk-fwqpwbd8.js";import"../chunk-evpjxbzm.js";import"../chunk-rv3k0kfr.js";export{Bi as createImageTool};
@@ -0,0 +1,17 @@
1
+ type InputJson = null | string | number | boolean | InputJson[] | {
2
+ [key: string]: InputJson;
3
+ };
4
+ export type SessionInputConfig = {
5
+ mode: string;
6
+ config: {
7
+ [key: string]: InputJson;
8
+ };
9
+ };
10
+ export type SessionInputConfigSnapshot = {
11
+ sessionId: string;
12
+ revision: number;
13
+ inputConfig: SessionInputConfig | null;
14
+ };
15
+ export declare function parseInputConfig(value: unknown): SessionInputConfig;
16
+ export declare function parseInputSnapshot(value: unknown, sessionId: string): SessionInputConfigSnapshot;
17
+ export {};
@@ -0,0 +1 @@
1
+ import{ji,Mn}from"../chunk-sp2ny9ak.js";export{ji as parseInputConfig,Mn as parseInputSnapshot};
@@ -0,0 +1,10 @@
1
+ import type { SessionInputConfig } from "../input-config";
2
+ export declare const chatInputMode: {
3
+ persistConfig: boolean;
4
+ nativeTools: {};
5
+ applicationContext: () => Record<string, string>;
6
+ parseConfig(config: SessionInputConfig["config"]): Record<string, never>;
7
+ routePrompt<T>(routes: {
8
+ native: () => T;
9
+ }): T;
10
+ };
@@ -0,0 +1 @@
1
+ import{qi}from"../../chunk-e1fzfaqj.js";import"../../chunk-etvdqkvb.js";export{qi as chatInputMode};
@@ -0,0 +1 @@
1
+ export declare function executionMeta(meta: Record<string, unknown> | undefined): Record<string, unknown> | undefined;
@@ -0,0 +1 @@
1
+ import{co}from"../../chunk-bw3bpr6m.js";export{co as executionMeta};
@@ -0,0 +1 @@
1
+ export declare function imageApplicationContext(intent: unknown, instructions?: string): Record<string, string>;
@@ -0,0 +1 @@
1
+ import{xt}from"../../chunk-etvdqkvb.js";export{xt as imageApplicationContext};
@@ -0,0 +1,14 @@
1
+ import { type ImageSelection } from "../../image";
2
+ import type { SessionInputConfig } from "../input-config";
3
+ import { imageApplicationContext } from "./image-context";
4
+ export declare const imageInputMode: {
5
+ persistConfig: boolean;
6
+ nativeTools: {
7
+ imageGeneration: boolean;
8
+ };
9
+ applicationContext: typeof imageApplicationContext;
10
+ parseConfig(config: SessionInputConfig["config"]): ImageSelection;
11
+ routePrompt<T>(routes: {
12
+ image: () => T;
13
+ }): T;
14
+ };
@@ -0,0 +1 @@
1
+ import{ge}from"../../chunk-30a5fgk9.js";import"../../chunk-fwqpwbd8.js";import"../../chunk-etvdqkvb.js";import"../../chunk-rv3k0kfr.js";export{ge as imageInputMode};
@@ -0,0 +1,46 @@
1
+ import type { SessionInputConfig } from "../input-config";
2
+ declare const inputModeDefinitions: {
3
+ chat: {
4
+ persistConfig: boolean;
5
+ nativeTools: {};
6
+ applicationContext: () => Record<string, string>;
7
+ parseConfig(config: SessionInputConfig["config"]): Record<string, never>;
8
+ routePrompt<T>(routes: {
9
+ native: () => T;
10
+ }): T;
11
+ };
12
+ image: {
13
+ persistConfig: boolean;
14
+ nativeTools: {
15
+ imageGeneration: boolean;
16
+ };
17
+ applicationContext: typeof import("./image-context").imageApplicationContext;
18
+ parseConfig(config: SessionInputConfig["config"]): import("../../image").ImageSelection;
19
+ routePrompt<T>(routes: {
20
+ image: () => T;
21
+ }): T;
22
+ };
23
+ };
24
+ export type InputMode = keyof typeof inputModeDefinitions;
25
+ export declare function isInputMode(mode: string): mode is InputMode;
26
+ export declare function inputModeDefinition(mode: string): {
27
+ persistConfig: boolean;
28
+ nativeTools: {};
29
+ applicationContext: () => Record<string, string>;
30
+ parseConfig(config: SessionInputConfig["config"]): Record<string, never>;
31
+ routePrompt<T>(routes: {
32
+ native: () => T;
33
+ }): T;
34
+ } | {
35
+ persistConfig: boolean;
36
+ nativeTools: {
37
+ imageGeneration: boolean;
38
+ };
39
+ applicationContext: typeof import("./image-context").imageApplicationContext;
40
+ parseConfig(config: SessionInputConfig["config"]): import("../../image").ImageSelection;
41
+ routePrompt<T>(routes: {
42
+ image: () => T;
43
+ }): T;
44
+ };
45
+ export declare function resolveInputMode(inputConfig: SessionInputConfig | null): InputMode;
46
+ export {};
@@ -0,0 +1 @@
1
+ import{ot,Ge,ya}from"../../chunk-tc6d0v1y.js";import"../../chunk-30a5fgk9.js";import"../../chunk-fwqpwbd8.js";import"../../chunk-e1fzfaqj.js";import"../../chunk-etvdqkvb.js";import"../../chunk-rv3k0kfr.js";export{Ge as inputModeDefinition,ot as isInputMode,ya as resolveInputMode};
@@ -0,0 +1,2 @@
1
+ export type ProjectPaths = (cwd: string) => readonly [string, ...string[]];
2
+ export declare const macProjectPaths: ProjectPaths;
@@ -0,0 +1 @@
1
+ import{Ss}from"../chunk-q7rq46qc.js";export{Ss as macProjectPaths};
@@ -0,0 +1,3 @@
1
+ export declare function isAuthenticationRequired(error: unknown): boolean;
2
+ export declare function isModelSelectionRequired(error: unknown): boolean;
3
+ export declare function explainRequestError(error: unknown, method: string): unknown;
@@ -0,0 +1 @@
1
+ import{me,Nn,va}from"../chunk-gwskdhaw.js";export{va as explainRequestError,me as isAuthenticationRequired,Nn as isModelSelectionRequired};
@@ -0,0 +1,2 @@
1
+ import type { CodexClient } from "./client";
2
+ export declare function watchSessionList(client: CodexClient): () => void;
@@ -0,0 +1 @@
1
+ import{_s}from"../chunk-9k58vckd.js";export{_s as watchSessionList};
@@ -1 +1 @@
1
- import{pe}from"./chunk-1e7gk302.js";import"./chunk-veb90k24.js";import"./chunk-pvd09dx5.js";export{pe as AppReferenceBadge};
1
+ import{xe}from"./chunk-d9mj74pb.js";import"./chunk-ath5nv2w.js";import"./chunk-xspnhgq6.js";export{xe as AppReferenceBadge};
@@ -28,9 +28,9 @@ export declare function defineApplicationTool<T>(tool: Omit<ApplicationTool, "ex
28
28
  }): ApplicationTool;
29
29
  export declare function applicationToolSet(tools: readonly ApplicationTool[]): ClientToolSet;
30
30
  export declare class ApplicationToolRegistry {
31
- private readonly session;
32
31
  private readonly sessions;
33
32
  private readonly calls;
33
+ private readonly session;
34
34
  constructor(session: (id: string) => Session | undefined);
35
35
  bind(id: string, tools: readonly ApplicationTool[], revision: string): void;
36
36
  cancel(id: string): void;
@@ -1 +1 @@
1
- import{Ir,xn,bn}from"./chunk-segftqt4.js";export{bn as ApplicationToolRegistry,xn as applicationToolSet,Ir as defineApplicationTool};
1
+ import{En,Rn,po}from"./chunk-evpjxbzm.js";export{po as ApplicationToolRegistry,Rn as applicationToolSet,En as defineApplicationTool};
@@ -1 +1 @@
1
- import{ei,An,Ve,mn}from"../chunk-9rvf1am9.js";import{autoUpdate as j}from"@floating-ui/dom";import{cn as A}from"cn";import{useCallback as T,useEffect as I,useLayoutEffect as L,useMemo as q,useRef as G,useState as C}from"react";import{createPortal as V}from"react-dom";import{Badge as W}from"@nyssance/shadcn/vega/components/ui/badge";import{Button as B}from"@nyssance/shadcn/vega/components/ui/button";import{Checkbox as H}from"@nyssance/shadcn/vega/components/ui/checkbox";import{Input as M}from"@nyssance/shadcn/vega/components/ui/input";import{Label as O}from"@nyssance/shadcn/vega/components/ui/label";import{RadioGroup as K,RadioGroupItem as _}from"@nyssance/shadcn/vega/components/ui/radio-group";import{Textarea as X}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as s,jsxs as d}from"react/jsx-runtime";var l="__other__";function de({current:n,total:U,anchorRef:x,t:u,onAccept:P,onDecline:Q}){let p=q(()=>n?ei(n.requestedSchema):[],[n]),[b,g]=C({}),S=G(null);I(()=>{if(n?.elicitationId===void 0)return;let e={};for(let{key:r,property:i}of p)if(!Ve(i)){let c=mn(i)[0];if(c)e[r]={selected:c.value}}g(e)},[n?.elicitationId,p]),I(()=>{if(n?.elicitationId!==void 0&&S.current&&document.activeElement?.tagName!=="INPUT"&&document.activeElement?.tagName!=="TEXTAREA")S.current.focus()},[n?.elicitationId]);let[w,R]=C(null),[k,z]=C(null),N=T(()=>{let e=x.current;if(!e)return;let r=e.getBoundingClientRect();if(r.width===0){let i=Math.min(640,window.innerWidth*0.9);R({left:(window.innerWidth-i)/2,width:i,bottom:24});return}R({left:r.left,width:r.width,bottom:window.innerHeight-r.bottom+20})},[x]);L(()=>{if(!n)return;let e=0,r=()=>{if(x.current){N();return}e=requestAnimationFrame(r)};return r(),()=>cancelAnimationFrame(e)},[n,N,x]),L(()=>{let e=x.current;if(!n||!e||!k)return;return j(e,k,N,{animationFrame:!0})},[n,k,x,N]);let y=q(()=>{if(!n)return!1;for(let{key:e,property:r}of p){let i=b[e];if(!i)return!1;if(Ve(r)){if(!i.selectedSet||i.selectedSet.size===0)return!1;if(i.selectedSet.has(l)&&!i.otherText?.trim())return!1}else{if(!i.selected)return!1;if(i.selected===l&&!i.otherText?.trim())return!1}}return!0},[n,p,b]),D=T(async()=>{if(!n)return;if(!y)return;let e={},r={};for(let{key:i,property:c}of p){let a=b[i];if(!a)continue;let f;if(Ve(c))e[i]=[...a.selectedSet??[]].map((m)=>m===l?(a.otherText??"").trim():m).filter(Boolean);else{let m=a.selected??"";if(e[i]=m===l?(a.otherText??"").trim():m,m!==l)f=mn(c).find((t)=>t.value===m)?.preview}let v=a.notes?.trim();if(f||v)r[i]={...f&&{preview:f},...v&&{notes:v}}}await P(n.elicitationId,e,r)},[n,p,b,y,P]),F=T(async()=>{if(n)await Q(n.elicitationId)},[n,Q]);if(!n||!w)return null;return V(d("div",{"data-overlay":"ask-user-question",tabIndex:0,onKeyDown:(e)=>{if(e.key==="Escape")e.preventDefault(),F()},className:"bg-card border-border fixed z-50 flex flex-col overflow-hidden rounded-lg border shadow-lg outline-none",style:{left:w.left,width:w.width,bottom:w.bottom,maxHeight:"70vh"},ref:(e)=>{S.current=e,z(e)},children:[d("div",{className:"border-border flex shrink-0 items-center justify-between gap-2 border-b px-3 py-2",children:[s("div",{className:"text-foreground text-sm font-medium",children:u("askUserQuestion.title")}),U>1&&s("span",{className:"text-muted-foreground shrink-0 text-xs",children:`1 / ${U}`})]}),s("div",{className:"min-h-0 flex-1 overflow-y-auto",children:s("div",{className:"space-y-4 px-3 py-3",children:p.map(({key:e,property:r},i)=>{let c=b[e],a=c?.selected,f=c?.selectedSet??new Set,v=mn(r),m=Ve(r);return d("div",{className:"space-y-2",children:[d("div",{className:"flex items-center gap-2",children:[s(W,{variant:"secondary",className:"font-mono text-[10px] tracking-wide uppercase",children:An(r).title??e}),s("div",{className:"text-foreground text-sm font-medium",children:An(r).description})]}),m?d("div",{className:"space-y-1.5 ps-1",children:[v.map((t)=>d("label",{className:"hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",children:[s(H,{checked:f.has(t.value),onCheckedChange:(o)=>{g((h)=>{let E=new Set(h[e]?.selectedSet??new Set);if(o)E.add(t.value);else E.delete(t.value);return{...h,[e]:{...h[e],selectedSet:E}}})}}),d("div",{className:"min-w-0 flex-1",children:[s("div",{className:"text-foreground text-sm",children:t.label}),t.description&&s("div",{className:"text-muted-foreground text-xs",children:t.description})]})]},t.value)),d("label",{className:"hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",children:[s(H,{checked:f.has(l),onCheckedChange:(t)=>{g((o)=>{let h=new Set(o[e]?.selectedSet??new Set);if(t)h.add(l);else h.delete(l);return{...o,[e]:{...o[e],selectedSet:h}}})}}),s("div",{className:"text-foreground min-w-0 flex-1 text-sm",children:u("askUserQuestion.other")})]}),f.has(l)&&s("div",{className:"ps-7",children:s(M,{placeholder:u("askUserQuestion.otherPlaceholder"),value:c?.otherText??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],otherText:t.target.value}}))})})]}):d(K,{value:a??"",onValueChange:(t)=>g((o)=>({...o,[e]:{...o[e],selected:t}})),className:"space-y-1.5 ps-1",children:[v.map((t)=>{let o=`${i}:${t.value}`;return d("div",{className:A("hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",a===t.value&&"bg-muted/60"),children:[s(_,{value:t.value,id:o}),d(O,{htmlFor:o,className:"min-w-0 flex-1 cursor-pointer",children:[s("div",{className:"text-foreground text-sm font-normal",children:t.label}),t.description&&s("div",{className:"text-muted-foreground text-xs font-normal",children:t.description})]})]},t.value)}),d("div",{className:A("hover:bg-muted/40 flex items-center gap-2 rounded-sm px-1.5 py-1",a===l&&"bg-muted/60"),children:[s(_,{value:l,id:`${i}:other`,className:"mt-0.5"}),s(O,{htmlFor:`${i}:other`,className:"text-foreground min-w-0 flex-1 cursor-pointer text-sm font-normal",children:u("askUserQuestion.other")})]}),a===l&&s("div",{className:"ps-7",children:s(M,{placeholder:u("askUserQuestion.otherPlaceholder"),value:c?.otherText??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],otherText:t.target.value}}))})})]}),!m&&a&&a!==l&&(()=>{let t=v.find((o)=>o.value===a)?.preview;if(!t)return null;return s("pre",{className:"bg-muted/50 text-muted-foreground ms-1 mt-1 overflow-auto rounded-sm px-2 py-1.5 font-mono text-[11px] whitespace-pre-wrap",children:t})})(),v.some((t)=>t.preview)&&s(X,{placeholder:u("askUserQuestion.notesPlaceholder"),value:c?.notes??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],notes:t.target.value}})),rows:1,className:"min-h-0 resize-none text-xs"})]},e)})})}),d("div",{className:"border-border bg-card flex shrink-0 items-center justify-end gap-2 border-t px-3 py-2",children:[s(B,{variant:"ghost",size:"sm",onClick:()=>void F(),children:u("askUserQuestion.cancel")}),s(B,{size:"sm",disabled:!y,onClick:()=>void D(),children:u("askUserQuestion.submit")})]})]}),document.body)}export{de as ChoiceElicitationForm};
1
+ import{bi,eo,Ye,on}from"../chunk-ph7srp7q.js";import{autoUpdate as j}from"@floating-ui/dom";import{cn as A}from"cn";import{useCallback as T,useEffect as I,useLayoutEffect as L,useMemo as q,useRef as G,useState as C}from"react";import{createPortal as V}from"react-dom";import{Badge as W}from"@nyssance/shadcn/vega/components/ui/badge";import{Button as B}from"@nyssance/shadcn/vega/components/ui/button";import{Checkbox as H}from"@nyssance/shadcn/vega/components/ui/checkbox";import{Input as M}from"@nyssance/shadcn/vega/components/ui/input";import{Label as O}from"@nyssance/shadcn/vega/components/ui/label";import{RadioGroup as K,RadioGroupItem as _}from"@nyssance/shadcn/vega/components/ui/radio-group";import{Textarea as X}from"@nyssance/shadcn/vega/components/ui/textarea";import{jsx as s,jsxs as d}from"react/jsx-runtime";var l="__other__";function de({current:n,total:U,anchorRef:x,t:u,onAccept:P,onDecline:Q}){let p=q(()=>n?bi(n.requestedSchema):[],[n]),[b,g]=C({}),S=G(null);I(()=>{if(n?.elicitationId===void 0)return;let e={};for(let{key:r,property:i}of p)if(!Ye(i)){let c=on(i)[0];if(c)e[r]={selected:c.value}}g(e)},[n?.elicitationId,p]),I(()=>{if(n?.elicitationId!==void 0&&S.current&&document.activeElement?.tagName!=="INPUT"&&document.activeElement?.tagName!=="TEXTAREA")S.current.focus()},[n?.elicitationId]);let[w,R]=C(null),[k,z]=C(null),N=T(()=>{let e=x.current;if(!e)return;let r=e.getBoundingClientRect();if(r.width===0){let i=Math.min(640,window.innerWidth*0.9);R({left:(window.innerWidth-i)/2,width:i,bottom:24});return}R({left:r.left,width:r.width,bottom:window.innerHeight-r.bottom+20})},[x]);L(()=>{if(!n)return;let e=0,r=()=>{if(x.current){N();return}e=requestAnimationFrame(r)};return r(),()=>cancelAnimationFrame(e)},[n,N,x]),L(()=>{let e=x.current;if(!n||!e||!k)return;return j(e,k,N,{animationFrame:!0})},[n,k,x,N]);let y=q(()=>{if(!n)return!1;for(let{key:e,property:r}of p){let i=b[e];if(!i)return!1;if(Ye(r)){if(!i.selectedSet||i.selectedSet.size===0)return!1;if(i.selectedSet.has(l)&&!i.otherText?.trim())return!1}else{if(!i.selected)return!1;if(i.selected===l&&!i.otherText?.trim())return!1}}return!0},[n,p,b]),D=T(async()=>{if(!n)return;if(!y)return;let e={},r={};for(let{key:i,property:c}of p){let a=b[i];if(!a)continue;let f;if(Ye(c))e[i]=[...a.selectedSet??[]].map((m)=>m===l?(a.otherText??"").trim():m).filter(Boolean);else{let m=a.selected??"";if(e[i]=m===l?(a.otherText??"").trim():m,m!==l)f=on(c).find((t)=>t.value===m)?.preview}let v=a.notes?.trim();if(f||v)r[i]={...f&&{preview:f},...v&&{notes:v}}}await P(n.elicitationId,e,r)},[n,p,b,y,P]),F=T(async()=>{if(n)await Q(n.elicitationId)},[n,Q]);if(!n||!w)return null;return V(d("div",{"data-overlay":"ask-user-question",tabIndex:0,onKeyDown:(e)=>{if(e.key==="Escape")e.preventDefault(),F()},className:"bg-card border-border fixed z-50 flex flex-col overflow-hidden rounded-lg border shadow-lg outline-none",style:{left:w.left,width:w.width,bottom:w.bottom,maxHeight:"70vh"},ref:(e)=>{S.current=e,z(e)},children:[d("div",{className:"border-border flex shrink-0 items-center justify-between gap-2 border-b px-3 py-2",children:[s("div",{className:"text-foreground text-sm font-medium",children:u("askUserQuestion.title")}),U>1&&s("span",{className:"text-muted-foreground shrink-0 text-xs",children:`1 / ${U}`})]}),s("div",{className:"min-h-0 flex-1 overflow-y-auto",children:s("div",{className:"space-y-4 px-3 py-3",children:p.map(({key:e,property:r},i)=>{let c=b[e],a=c?.selected,f=c?.selectedSet??new Set,v=on(r),m=Ye(r);return d("div",{className:"space-y-2",children:[d("div",{className:"flex items-center gap-2",children:[s(W,{variant:"secondary",className:"font-mono text-[10px] tracking-wide uppercase",children:eo(r).title??e}),s("div",{className:"text-foreground text-sm font-medium",children:eo(r).description})]}),m?d("div",{className:"space-y-1.5 ps-1",children:[v.map((t)=>d("label",{className:"hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",children:[s(H,{checked:f.has(t.value),onCheckedChange:(o)=>{g((h)=>{let E=new Set(h[e]?.selectedSet??new Set);if(o)E.add(t.value);else E.delete(t.value);return{...h,[e]:{...h[e],selectedSet:E}}})}}),d("div",{className:"min-w-0 flex-1",children:[s("div",{className:"text-foreground text-sm",children:t.label}),t.description&&s("div",{className:"text-muted-foreground text-xs",children:t.description})]})]},t.value)),d("label",{className:"hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",children:[s(H,{checked:f.has(l),onCheckedChange:(t)=>{g((o)=>{let h=new Set(o[e]?.selectedSet??new Set);if(t)h.add(l);else h.delete(l);return{...o,[e]:{...o[e],selectedSet:h}}})}}),s("div",{className:"text-foreground min-w-0 flex-1 text-sm",children:u("askUserQuestion.other")})]}),f.has(l)&&s("div",{className:"ps-7",children:s(M,{placeholder:u("askUserQuestion.otherPlaceholder"),value:c?.otherText??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],otherText:t.target.value}}))})})]}):d(K,{value:a??"",onValueChange:(t)=>g((o)=>({...o,[e]:{...o[e],selected:t}})),className:"space-y-1.5 ps-1",children:[v.map((t)=>{let o=`${i}:${t.value}`;return d("div",{className:A("hover:bg-muted/40 flex cursor-pointer items-center gap-2 rounded-sm px-1.5 py-1",a===t.value&&"bg-muted/60"),children:[s(_,{value:t.value,id:o}),d(O,{htmlFor:o,className:"min-w-0 flex-1 cursor-pointer",children:[s("div",{className:"text-foreground text-sm font-normal",children:t.label}),t.description&&s("div",{className:"text-muted-foreground text-xs font-normal",children:t.description})]})]},t.value)}),d("div",{className:A("hover:bg-muted/40 flex items-center gap-2 rounded-sm px-1.5 py-1",a===l&&"bg-muted/60"),children:[s(_,{value:l,id:`${i}:other`,className:"mt-0.5"}),s(O,{htmlFor:`${i}:other`,className:"text-foreground min-w-0 flex-1 cursor-pointer text-sm font-normal",children:u("askUserQuestion.other")})]}),a===l&&s("div",{className:"ps-7",children:s(M,{placeholder:u("askUserQuestion.otherPlaceholder"),value:c?.otherText??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],otherText:t.target.value}}))})})]}),!m&&a&&a!==l&&(()=>{let t=v.find((o)=>o.value===a)?.preview;if(!t)return null;return s("pre",{className:"bg-muted/50 text-muted-foreground ms-1 mt-1 overflow-auto rounded-sm px-2 py-1.5 font-mono text-[11px] whitespace-pre-wrap",children:t})})(),v.some((t)=>t.preview)&&s(X,{placeholder:u("askUserQuestion.notesPlaceholder"),value:c?.notes??"",onChange:(t)=>g((o)=>({...o,[e]:{...o[e],notes:t.target.value}})),rows:1,className:"min-h-0 resize-none text-xs"})]},e)})})}),d("div",{className:"border-border bg-card flex shrink-0 items-center justify-end gap-2 border-t px-3 py-2",children:[s(B,{variant:"ghost",size:"sm",onClick:()=>void F(),children:u("askUserQuestion.cancel")}),s(B,{size:"sm",disabled:!y,onClick:()=>void D(),children:u("askUserQuestion.submit")})]})]}),document.body)}export{de as ChoiceElicitationForm};
@@ -1 +1 @@
1
- import{ei,An,Ve,mn}from"../chunk-9rvf1am9.js";export{ei as elicitationFields,An as elicitationLabels,mn as elicitationOptions,Ve as isMultiSelect};
1
+ import{bi,eo,Ye,on}from"../chunk-ph7srp7q.js";export{bi as elicitationFields,eo as elicitationLabels,on as elicitationOptions,Ye as isMultiSelect};
@@ -1 +1 @@
1
- import{va,Xo,za,Va}from"../chunk-vjmgh1q9.js";export{va as PERMISSION_KIND_GROUP_ORDER,za as isAllowKind,Va as isAlwaysKind,Xo as sortPermissionOptions};
1
+ import{la,_i,$a,qa}from"../chunk-jpr2y0y3.js";export{la as PERMISSION_KIND_GROUP_ORDER,$a as isAllowKind,qa as isAlwaysKind,_i as sortPermissionOptions};
@@ -1 +1 @@
1
- import{Jo}from"../chunk-qdgsg6v4.js";import"../chunk-vjmgh1q9.js";export{Jo as PermissionView};
1
+ import{ki}from"../chunk-4jp1d558.js";import"../chunk-jpr2y0y3.js";export{ki as PermissionView};
@@ -1 +1 @@
1
- import{Pa,fa,Ia,Qo}from"../chunk-vypkwd0x.js";export{Qo as SchemaElicitationForm,Pa as elicitationFields,fa as initialValues,Ia as isAnswered};
1
+ import{Ia,ca,Ta,Pi}from"../chunk-81n37a11.js";export{Pi as SchemaElicitationForm,Ia as elicitationFields,ca as initialValues,Ta as isAnswered};
@@ -1 +1 @@
1
- import{Yo}from"../chunk-tjfjvzv5.js";export{Yo as UrlElicitationCard};
1
+ import{Si}from"../chunk-x2wcwpw3.js";export{Si as UrlElicitationCard};
@@ -0,0 +1,2 @@
1
+ import{E}from"./chunk-44r55va6.js";import{s,h}from"./chunk-bba9qej8.js";import{v,f}from"./chunk-s6medm3z.js";import{GlobeIcon as I,LogOutIcon as G}from"lucide-react";import{useRef as R,useState as c}from"react";import{Avatar as k,AvatarFallback as T,AvatarImage as B}from"@nyssance/shadcn/vega/components/ui/avatar";import{DropdownMenu as H,DropdownMenuContent as U,DropdownMenuGroup as d,DropdownMenuItem as F,DropdownMenuLabel as j,DropdownMenuRadioGroup as z,DropdownMenuRadioItem as V,DropdownMenuSeparator as l,DropdownMenuSub as W,DropdownMenuSubContent as _,DropdownMenuSubTrigger as q,DropdownMenuTrigger as J}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as n}from"react/jsx-runtime";function As(e){return o(d,{...e})}function Es(e){return o(l,{...e})}function ti({className:e,...r}){return o(F,{className:["h-[var(--navigation-row-height,30px)] py-0 [&_svg]:text-muted-foreground",e].filter(Boolean).join(" "),...r})}function Rs({languages:e,value:r,onChange:i}){let a=s();return n(W,{children:[n(q,{className:"h-[var(--navigation-row-height,30px)] py-0",children:[o(I,{className:"text-muted-foreground"}),a.t("sessionList.language")]}),o(_,{children:o(z,{value:r,onValueChange:(t)=>void h(a,Promise.resolve(i(t))),children:e.map((t)=>o(V,{value:t.code,children:t.label},t.code))})})]})}function Ls({user:e,children:r,onSignOut:i,busy:a=!1}){let t=s(),{t:N}=t,[g,C]=c(!1),[L,m]=c(!1),M=R(null),[w,S]=c({width:0,offset:0}),O=(x)=>{if(x){let p=M.current,u=p?.closest("[data-sidebar-footer-row]");if(!p||!u)throw Error("AccountMenu must sit in a [data-sidebar-footer-row] row");let y=u.getBoundingClientRect(),A=p.getBoundingClientRect(),P=getComputedStyle(u).direction==="rtl";S({width:u.clientWidth,offset:P?y.right-A.right:A.left-y.left})}C(x)};E(g);let b=a||L,D=n(k,{className:"size-[18px] after:border-0",children:[o(B,{src:e.avatar??void 0,alt:""}),o(T,{className:"bg-primary text-primary-foreground text-xs",children:[...e.name].slice(0,2).join("").toLocaleUpperCase()})]});return n(H,{open:g,onOpenChange:O,children:[n(J,{ref:M,render:o(f,{disabled:b,className:"text-muted-foreground hover:bg-foreground/8 data-popup-open:bg-foreground/5 font-normal"}),children:[o(v,{children:D}),o("span",{className:"min-w-0 truncate",children:e.name})]}),n(U,{side:"top",align:"start",alignOffset:-w.offset,sideOffset:8,style:{width:w.width},children:[n(d,{children:[n(j,{className:"text-popover-foreground flex items-center gap-2 px-2 py-2 text-sm font-medium",children:[o(v,{children:D}),n("span",{className:"min-w-0 flex-1",children:[o("span",{className:"block truncate",children:e.name}),o("span",{className:"text-muted-foreground mt-0.5 block truncate text-xs font-normal",children:e.email})]})]}),o(l,{})]}),r,r!=null&&o(l,{}),o(d,{children:n(ti,{disabled:b,onClick:()=>{m(!0),h(t,i()).finally(()=>m(!1))},children:[o(G,{}),N("sessionList.signOut")]})})]})]})}
2
+ export{As,Es,ti,Rs,Ls};
@@ -0,0 +1,2 @@
1
+ import{n}from"./chunk-bba9qej8.js";import{Me,J,ce}from"./chunk-phee3jn9.js";import{useEffect as S,useMemo as f}from"react";function Ns(s){let c=J((i)=>i.activityOrder),a=n((i)=>{let o=Object.values(i.runStates).filter((t)=>c.includes(t.sessionId)&&(t.state==="done"||t.state==="requires_action")&&Me(i,t.sessionId)).map((t)=>[t.sessionId,JSON.stringify([t.state,t.since,t.interruption])]);return JSON.stringify(o)}),e=f(()=>new Map(JSON.parse(a)),[a]),u=J((i)=>i.activitySeen),r=ce();return S(()=>{if(s==="activity")r({activitySeen:e})},[s,e,r]),s!=="activity"&&[...e].some(([i,o])=>u.get(i)!==o)}
2
+ export{Ns};
@@ -0,0 +1,2 @@
1
+ import{kt}from"./chunk-5c42mfat.js";import{o}from"./chunk-73e9vpm9.js";import{e,b}from"./chunk-esbgn8q0.js";import{Y,y,ee}from"./chunk-rkqptd9w.js";import{isBooleanOption as U,isGroupedSelect as q,isSelectOption as A}from"@nyssance/codex-acp-v2/client";import{Zap as Z}from"lucide-react";import{memo as D,useRef as F}from"react";import{jsx as B}from"react/jsx-runtime";function H({sessionId:l,options:u,disabled:G,onModelChange:h,onConfigChange:C,defaultGroup:I={id:"models",name:"Models"},catalog:x=(c)=>c,headerAction:L}){let{host:c,client:N}=e(),{t:i}=c,P=o((n)=>Boolean(n.configPending[l])),p=F({sessionId:l,model:!0}),O=P&&(p.current.sessionId!==l||p.current.model),k=o((n)=>{let r=n.sessions[l];return r?.state==="running"||r?.state==="requires_action"}),t=y(u,"model"),a=y(u,"thought_level"),v=u.filter((n)=>n.configId!=="collaboration_mode"&&(n.category==="model_config"||n.category!=="mode"&&n!==t&&n!==a)),_=v.filter(A),m=v.filter(U);if(!t&&!a&&_.length===0&&m.length===0)return null;let f=(n,r)=>{if(r===n.currentValue)return Promise.resolve();p.current={sessionId:l,model:n===t};let d=C?C(n.configId,r):N.setConfig(l,n.configId,r);return b(c,d),d},g=a?Y(a):[],z=g.reduce((n,r)=>r.name.length>=n.length?r.name:n,""),R=t?ee(t):i("composer.model"),S=(n)=>({api_id:n.value,label:n.name}),V=x(t&&q(t.options)?t.options.map((n)=>({id:n.groupId,name:n.name,models:n.options.map(S)})):[{...I,models:t?Y(t).map(S):[]}]),w=V.flatMap((n)=>n.models),M=w.find((n)=>n.api_id===t?.currentValue)??{api_id:t?.currentValue??"",label:R},s=m.find((n)=>n.configId==="fast_mode"||n.configId==="fast-mode");return B(kt,{disabled:G||O||k,switching:O,value:{...M,label:M.shortLabel??M.label},compactCatalog:!0,models:w,showModelList:Boolean(t),onChange:(n)=>{if(n.api_id===t?.currentValue)return;if(h)h(n.api_id);else if(t)f(t,n.api_id)},header:{name:t?.name??i("composer.model"),action:L},modelGroups:V,t:i,effortConfig:a&&g.length>0?{name:"Effort",value:a.currentValue,levels:g,sizer:z,onChange:(n)=>f(a,n)}:void 0,selectOptions:_.map((n)=>({id:n.configId,name:n.name,value:n.currentValue,options:Y(n).map((r)=>({value:r.value,label:r.name})),onChange:(r)=>f(n,r)})),booleanOptions:[{id:"fast_mode",name:i("composer.fastMode"),currentValue:s?.currentValue??!1,disabled:!s,title:!s?i("composer.fastModeUnsupported"):void 0,icon:B(Z,{className:"size-4","aria-hidden":"true"})},...m.filter((n)=>n!==s).map((n)=>({id:n.configId,name:n.name,currentValue:n.currentValue}))],onBooleanChange:(n,r)=>{let d=n==="fast_mode"?s:m.find((E)=>E.configId===n);if(!d)throw Error(`Unknown boolean config: ${n}`);f(d,r)}})}var Cn=D(H);
2
+ export{Cn};
@@ -0,0 +1,2 @@
1
+ import{d,i}from"./chunk-kqvgmkvr.js";import{q,K,le,W,Z,ke}from"./chunk-nhkm2gr7.js";import{we}from"./chunk-7p7fxgdb.js";import{k}from"./chunk-qk1yqepm.js";import{Se}from"./chunk-xyffk47k.js";import{Q,_e}from"./chunk-pqz2471h.js";import{CheckIcon as O,SparklesIcon as A,XIcon as U}from"lucide-react";import{useDeferredValue as V,useState as y}from"react";import{Button as N}from"@nyssance/shadcn/vega/components/ui/button";import{Dialog as F,DialogClose as X,DialogContent as _,DialogDescription as J,DialogHeader as R,DialogTitle as Y}from"@nyssance/shadcn/vega/components/ui/dialog";import{ItemTitle as ee}from"@nyssance/shadcn/vega/components/ui/item";import{Spinner as te}from"@nyssance/shadcn/vega/components/ui/spinner";import{Switch as ae}from"@nyssance/shadcn/vega/components/ui/switch";import{Tabs as se,TabsContent as ne,TabsList as ie,TabsTrigger as oe}from"@nyssance/shadcn/vega/components/ui/tabs";import{jsx as t,jsxs as n,Fragment as S}from"react/jsx-runtime";function T({skill:r}){let{assetUrl:p}=d(),[u,s]=y(!1),l=r.interface?.iconSmall,h=l&&p?p(l):r.interface?.iconSmallUrl;return t("div",{className:"bg-muted flex size-10 shrink-0 items-center justify-center rounded-xl",children:h&&!u?t("img",{src:h,alt:"",onError:()=>s(!0),className:"size-6 rounded object-contain"}):t(A,{className:"text-muted-foreground size-6"})})}function re({skill:r}){let{t:p}=d(),u=i((l)=>l.setSkillEnabled),s=i((l)=>(r.path in l.busySkills));return n("div",{className:"flex items-center gap-2",children:[s&&t(te,{className:"text-muted-foreground size-3.5"}),t(ae,{checked:r.enabled,disabled:s,"aria-label":`${p(r.enabled?"plugins.skills.disable":"plugins.skills.enable")}: ${r.interface?.displayName??r.name}`,onCheckedChange:(l)=>void u(r,l)})]})}function Gt({query:r,ready:p,onOpenPlugin:u}){let{t:s}=d(),l=i((e)=>e.skills),h=i((e)=>e.skillErrors),P=i((e)=>e.loading)||!p,j=i((e)=>e.installed),z=i((e)=>e.skillProjects),[M,E]=y(null),[v,L]=y(!1),[B,C]=y(null),b=V(r.trim().toLowerCase()),o=l.find((e)=>e.path===B),x=j.find(({plugin:e})=>e.id===o?.pluginId),c=l.filter((e)=>[e.name,e.interface?.displayName,e.description,e.shortDescription,e.interface?.shortDescription,e.pluginId].filter(Boolean).join(" ").toLowerCase().includes(b)).toSorted((e,a)=>(e.interface?.displayName??e.name).localeCompare(a.interface?.displayName??a.name)),m=[...["user","system","admin"].flatMap((e)=>{let a=l.filter((f)=>f.scope===e);return a.length?[{id:e,label:s(e==="user"?"plugins.catalog.personal":`plugins.skills.scope.${e}`),paths:new Set(a.map((f)=>f.path)),path:null}]:[]}),...Object.entries(z).flatMap(([e,a])=>{if(!l.some((I)=>I.scope==="repo"&&a.includes(I.path)))return[];let f=e.replace(/[\\/]+$/,"").split(/[\\/]/).at(-1)||e;return[{id:`project:${e}`,label:f,paths:new Set(a),path:e}]})],H=m.map((e)=>e.label);for(let e of m)if(e.path&&H.filter((a)=>a===e.label).length>1)e.label=e.path;let g=m.find((e)=>e.id===M)??m[0],D=g?c.filter((e)=>g.paths.has(e.path)):[],G=v||b?c:c.slice(0,6),w=(e)=>t(Z,{className:"grid grid-cols-1 gap-x-8 gap-y-2 px-0 @min-[700px]:grid-cols-2",children:e.map((a)=>n(ke,{className:"toolbox-row relative [contain-intrinsic-size:auto_80px] [content-visibility:auto]",children:[t(N,{variant:"ghost",className:"absolute inset-0 z-0 size-full","aria-label":a.interface?.displayName??a.name,onClick:()=>C(a.path)}),t(W,{className:"pointer-events-none relative translate-none! self-center!",children:t(T,{skill:a})}),n(K,{className:"pointer-events-none relative min-w-0",children:[t(ee,{className:"block truncate",children:a.interface?.displayName??a.name}),t(le,{className:"line-clamp-1",title:a.interface?.shortDescription??a.shortDescription??a.description,children:a.interface?.shortDescription??a.shortDescription??a.description})]}),t(q,{className:"text-muted-foreground pointer-events-none relative",children:a.enabled?t(O,{className:"size-4","aria-label":s("plugins.skills.enabledStatus")}):t("span",{className:"text-xs",children:s("plugins.skills.disabledBadge")})})]},a.path))});return n("div",{className:"flex min-h-0 flex-1 flex-col gap-4",children:[t(k,{className:"pe-0",viewportClassName:"pe-0",children:n("div",{className:`${Q} space-y-8 pt-6`,children:[h.map((e)=>n("p",{role:"alert",className:"text-destructive text-xs break-words",children:[e.path,": ",e.message]},e.path)),P?t(we,{skills:!0}):n(S,{children:[n("section",{"aria-label":s("plugins.skills.installed"),children:[n("div",{className:"mb-4 flex items-center justify-between gap-3",children:[t("h2",{className:"text-base font-medium",children:s("plugins.skills.installed")}),t("span",{role:"status",className:"text-muted-foreground text-xs",children:s("plugins.catalog.skillCount",{count:c.length})})]}),c.length?w(G):t("p",{className:"text-muted-foreground px-2 py-8 text-sm",children:s(b?"plugins.skills.filteredEmpty":"plugins.skills.empty")}),!b&&c.length>6&&t(N,{variant:"ghost",className:"text-muted-foreground mt-3 max-w-full justify-start","aria-expanded":v,onClick:()=>L((e)=>!e),children:v?s("plugins.sections.showLess"):s("plugins.catalog.showMore",{count:c.length-6})})]}),g&&n(se,{value:g.id,onValueChange:(e)=>{if(typeof e==="string")E(e)},className:"gap-6",children:[t(ie,{"aria-label":s("plugins.catalog.scope"),className:"h-auto max-w-full flex-wrap justify-start gap-2 bg-transparent",children:m.map((e)=>t(oe,{value:e.id,title:e.path??e.label,className:"data-active:bg-muted! h-8 flex-none rounded-lg px-3 text-[13px] font-medium shadow-none! after:hidden dark:data-active:border-transparent",children:e.label},e.id))}),m.map((e)=>t(ne,{value:e.id,children:e.id===g.id&&(D.length?w(D):t("p",{className:"text-muted-foreground px-2 py-8 text-sm",children:s("plugins.skills.filteredEmpty")}))},e.id))]})]})]})}),t(F,{open:!!o,onOpenChange:(e)=>{if(!e)C(null)},children:t(_,{showCloseButton:!1,className:_e,children:o&&n(S,{children:[t(Se,{path:o.path,renderHeader:(e)=>n(S,{children:[n("div",{className:"flex items-center justify-between gap-4",children:[t(T,{skill:o}),n("div",{className:"flex shrink-0 items-center gap-2",children:[t(re,{skill:o}),e,t(X,{render:t(N,{variant:"ghost",size:"icon-sm","aria-label":s("plugins.close")}),children:t(U,{})})]})]}),n(R,{className:"gap-3",children:[t(Y,{className:"text-2xl leading-8 font-semibold break-words",children:o.interface?.displayName??o.name}),t(J,{className:"text-sm leading-6 break-words whitespace-pre-wrap",children:o.description})]})]})},o.path),o.pluginId&&n("div",{className:"text-sm",children:[n("span",{className:"text-muted-foreground",children:[s("plugins.catalog.fromPlugin")," "]}),x?t(N,{variant:"link",className:"h-auto p-0",onClick:()=>{C(null),u(x)},children:x.plugin.interface?.displayName??x.plugin.name}):o.pluginId]})]})})})]})}
2
+ export{Gt};
@@ -0,0 +1,2 @@
1
+ import{u}from"./chunk-stv8pr4v.js";import{s}from"./chunk-bba9qej8.js";import{v,f}from"./chunk-s6medm3z.js";import{ut}from"./chunk-xnc0175v.js";import{cn as r}from"cn";import{ArrowLeftIcon as a,ArrowRightIcon as l,SlidersHorizontalIcon as p}from"lucide-react";import{DropdownMenu as c,DropdownMenuContent as m,DropdownMenuItem as d,DropdownMenuTrigger as g}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as o,jsxs as w}from"react/jsx-runtime";function Fs({onCollapseAll:i}){let{t:n}=s();return w(c,{children:[o(g,{render:o(ut,{"aria-label":n("sessionList.filter"),title:n("sessionList.filter")}),children:o(p,{})}),o(m,{align:"end",className:"w-52",children:o(d,{onClick:i,children:n("sessionList.collapseAllGroups")})})]})}function Os({screen:i,onSwitch:n}){let{t:e}=s(),t=e(i==="main"?"sessionList.openLeading":"sessionList.backToMain");return o(f,{className:r(u,i==="main"?"justify-start":"justify-end"),"aria-label":t,title:t,onClick:n,children:o(v,{children:i==="main"?o(a,{}):o(l,{})})})}
2
+ export{Fs,Os};
@@ -1,2 +1,2 @@
1
- import{me}from"./chunk-620q6hmz.js";import{isContentEntry as u,isImage as c,isText as s}from"@nyssance/codex-acp-v2/client";var d=me();function eo(f,m){let i=new Set;for(let e of m){if(e.kind!=="tool"||e.status!=="completed")continue;let o=e.content.filter(u);if(!o.some((n)=>c(n.content)))continue;o.forEach((n,a)=>{if(c(n.content))i.add(`${e.id}:${a}`);if(!s(n.content))return;let r;try{r=JSON.parse(n.content.text)}catch(t){if(t instanceof SyntaxError)return;throw t}if(r===null||typeof r!=="object"||!("kind"in r)||r.kind!=="alwith.image"||!("images"in r)||!Array.isArray(r.images))return;for(let t of r.images)if(t!==null&&typeof t==="object"&&typeof t.reference==="string")i.add(t.reference)})}if(i.size===0)return f;return f.map((e)=>{if(!s(e)||!e.text.includes("!["))return e;let o=d.lexer(e.text).map((n)=>{if(n.type!=="paragraph"||!n.tokens)return n.raw;let a=0;return n.tokens.map((t)=>(a+=t.raw.length,t.type==="image"&&i.has(t.href)?"":t.raw)).join("")+n.raw.slice(a)}).join("");return o===e.text?e:{...e,text:o}}).filter((e)=>!s(e)||e.text.trim().length>0)}
2
- export{eo};
1
+ import{Ce}from"./chunk-dr5swvaa.js";import{isContentEntry as u,isImage as c,isText as s}from"@nyssance/codex-acp-v2/client";var d=Ce();function Do(f,m){let i=new Set;for(let e of m){if(e.kind!=="tool"||e.status!=="completed")continue;let o=e.content.filter(u);if(!o.some((n)=>c(n.content)))continue;o.forEach((n,a)=>{if(c(n.content))i.add(`${e.id}:${a}`);if(!s(n.content))return;let r;try{r=JSON.parse(n.content.text)}catch(t){if(t instanceof SyntaxError)return;throw t}if(r===null||typeof r!=="object"||!("kind"in r)||r.kind!=="alwith.image"||!("images"in r)||!Array.isArray(r.images))return;for(let t of r.images)if(t!==null&&typeof t==="object"&&typeof t.reference==="string")i.add(t.reference)})}if(i.size===0)return f;return f.map((e)=>{if(!s(e)||!e.text.includes("!["))return e;let o=d.lexer(e.text).map((n)=>{if(n.type!=="paragraph"||!n.tokens)return n.raw;let a=0;return n.tokens.map((t)=>(a+=t.raw.length,t.type==="image"&&i.has(t.href)?"":t.raw)).join("")+n.raw.slice(a)}).join("");return o===e.text?e:{...e,text:o}}).filter((e)=>!s(e)||e.text.trim().length>0)}
2
+ export{Do};
@@ -1,2 +1,2 @@
1
- import{CheckCircleIcon as c,CircleIcon as o,LoaderIcon as i}from"lucide-react";import{jsx as n,jsxs as e}from"react/jsx-runtime";function de({entries:s}){let d=s.filter((a)=>a.status==="completed").length,t=s.find((a)=>a.status==="in_progress");return e("div",{className:"codex-plan",children:[e("div",{className:"codex-plan-summary",children:[e("span",{children:[d,"/",s.length]}),t!==void 0&&e("span",{className:"codex-plan-active",children:["· ",t.content]})]}),n("div",{className:"codex-plan-entries",children:s.map((a)=>e("div",{className:"codex-plan-entry","data-status":a.status,children:[a.status==="completed"&&n(c,{"aria-hidden":"true"}),a.status==="in_progress"&&n(i,{className:"codex-plan-spinner","aria-hidden":"true"}),a.status==="pending"&&n(o,{"aria-hidden":"true"}),n("span",{children:a.content})]},a.content))})]})}
2
- export{de};
1
+ import{CheckCircleIcon as c,CircleIcon as o,LoaderIcon as i}from"lucide-react";import{jsx as n,jsxs as e}from"react/jsx-runtime";function ve({entries:s}){let d=s.filter((a)=>a.status==="completed").length,t=s.find((a)=>a.status==="in_progress");return e("div",{className:"codex-plan",children:[e("div",{className:"codex-plan-summary",children:[e("span",{children:[d,"/",s.length]}),t!==void 0&&e("span",{className:"codex-plan-active",children:["· ",t.content]})]}),n("div",{className:"codex-plan-entries",children:s.map((a)=>e("div",{className:"codex-plan-entry","data-status":a.status,children:[a.status==="completed"&&n(c,{"aria-hidden":"true"}),a.status==="in_progress"&&n(i,{className:"codex-plan-spinner","aria-hidden":"true"}),a.status==="pending"&&n(o,{"aria-hidden":"true"}),n("span",{children:a.content})]},a.content))})]})}
2
+ export{ve};
@@ -1,4 +1,4 @@
1
- var mo=`<svg xmlns="http://www.w3.org/2000/svg">
1
+ var Xo=`<svg xmlns="http://www.w3.org/2000/svg">
2
2
  <defs>
3
3
  <linearGradient id="plugin-agent-mode-paint0_linear_1_1034" x1="30.0398" y1="40.0728" x2="11.3112" y2="-1.39757" gradientUnits="userSpaceOnUse">
4
4
  <stop stop-color="#2BBFFF"/>
@@ -1286,4 +1286,4 @@ var mo=`<svg xmlns="http://www.w3.org/2000/svg">
1286
1286
  </symbol>
1287
1287
  </svg>
1288
1288
  `;
1289
- export{mo};
1289
+ export{Xo};
@@ -0,0 +1,2 @@
1
+ import{createContext as i,useContext as r}from"react";import{jsx as e}from"react/jsx-runtime";var n=i(null);function ks({host:t,children:o}){return e(n.Provider,{value:t,children:o})}function c(){let t=r(n);if(t===null)throw Error("Activity host is missing");return t}function O(t){let{Markdown:o}=c();return e(o,{...t})}
2
+ export{ks,c,O};
@@ -1,2 +1,2 @@
1
- import{M}from"./chunk-fzze5xcw.js";import{useState as g}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as w,DropdownMenuContent as x,DropdownMenuTrigger as b}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as o}from"react/jsx-runtime";function ai({value:a,currentName:n,icon:r,options:p,label:i,header:t,onValueChange:s,showLabel:d=!1,disabled:l=!1,warning:u=!1}){let[m,c]=g(!1);return o(w,{open:m,onOpenChange:c,children:[e(b,{render:o(f,{disabled:l,"data-permission-warning":u?"":void 0,variant:"ghost","aria-label":`${i}: ${n}`,title:n,className:"text-muted-foreground data-popup-open:hover:bg-muted h-7 gap-1.5 rounded-full bg-transparent px-2 text-xs font-normal whitespace-nowrap data-popup-open:bg-transparent",children:[r,e("span",{className:d?"max-w-40 truncate":"hidden max-w-40 truncate @[40rem]/input-footer:inline-block",children:n})]})}),o(x,{align:"start",sideOffset:4,className:"permission-mode-menu z-100 w-auto max-w-[calc(100vw-2rem)] min-w-72 rounded-xl p-1.5",children:[t&&e("div",{className:"text-muted-foreground flex items-center px-1.5 pt-0.5 pb-1 text-[11px] leading-4",children:e("span",{children:t})}),e(M,{value:a,onValueChange:s,itemClassName:"items-center gap-2 py-1 pr-6 pl-2 whitespace-nowrap",options:p})]})]})}
2
- export{ai};
1
+ import{L}from"./chunk-3tvq6xr2.js";import{useState as g}from"react";import{Button as f}from"@nyssance/shadcn/vega/components/ui/button";import{DropdownMenu as w,DropdownMenuContent as x,DropdownMenuTrigger as b}from"@nyssance/shadcn/vega/components/ui/dropdown-menu";import{jsx as e,jsxs as o}from"react/jsx-runtime";function er({value:a,currentName:n,icon:r,options:p,label:i,header:t,onValueChange:s,showLabel:d=!1,disabled:l=!1,warning:u=!1}){let[m,c]=g(!1);return o(w,{open:m,onOpenChange:c,children:[e(b,{render:o(f,{disabled:l,"data-permission-warning":u?"":void 0,variant:"ghost","aria-label":`${i}: ${n}`,title:n,className:"text-muted-foreground data-popup-open:hover:bg-muted h-7 gap-1.5 rounded-full bg-transparent px-2 text-xs font-normal whitespace-nowrap data-popup-open:bg-transparent",children:[r,e("span",{className:d?"max-w-40 truncate":"hidden max-w-40 truncate @[40rem]/input-footer:inline-block",children:n})]})}),o(x,{align:"start",sideOffset:4,className:"permission-mode-menu z-100 w-auto max-w-[calc(100vw-2rem)] min-w-72 rounded-xl p-1.5",children:[t&&e("div",{className:"text-muted-foreground flex items-center px-1.5 pt-0.5 pb-1 text-[11px] leading-4",children:e("span",{children:t})}),e(L,{value:a,onValueChange:s,itemClassName:"items-center gap-2 py-1 pr-6 pl-2 whitespace-nowrap",options:p})]})]})}
2
+ export{er};
@@ -0,0 +1,2 @@
1
+ import{p}from"./chunk-n96z8etk.js";function Ps(r,n){return p.readSkillDocument({path:r,roots:n??null})}
2
+ export{Ps};
@@ -1,2 +1,2 @@
1
- function xi({container:i,target:f,clientX:e,clientY:n,currentScale:r,nextScale:s}){if(r<=0||s<=0)return null;let o=i.getBoundingClientRect(),t=f.getBoundingClientRect();if(t.width===0||t.height===0)return null;let h=e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom,l=h?(e-t.left)/t.width:0.5,a=h?(n-t.top)/t.height:0.5,c=t.width/r,g=t.height/r,m=c*s,u=g*s,d=e-o.left,p=n-o.top,P=i.scrollLeft+(t.left-o.left)+t.width/2,b=i.scrollTop+(t.top-o.top)+t.height/2,C=(l-0.5)*m,x=(a-0.5)*u;return{left:Math.max(0,P+C-d),top:Math.max(0,b+x-p)}}
2
- export{xi};
1
+ function Ft({container:i,target:f,clientX:e,clientY:n,currentScale:r,nextScale:s}){if(r<=0||s<=0)return null;let o=i.getBoundingClientRect(),t=f.getBoundingClientRect();if(t.width===0||t.height===0)return null;let h=e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom,l=h?(e-t.left)/t.width:0.5,a=h?(n-t.top)/t.height:0.5,c=t.width/r,g=t.height/r,m=c*s,u=g*s,d=e-o.left,p=n-o.top,P=i.scrollLeft+(t.left-o.left)+t.width/2,b=i.scrollTop+(t.top-o.top)+t.height/2,C=(l-0.5)*m,x=(a-0.5)*u;return{left:Math.max(0,P+C-d),top:Math.max(0,b+x-p)}}
2
+ export{Ft};
@@ -1,2 +1,2 @@
1
- import{o}from"./chunk-xqwbn2ph.js";import{e}from"./chunk-pwcw4zp2.js";import{Ge,rt,Ne}from"./chunk-xbp4r3n4.js";import{inSessionTree as m}from"@nyssance/codex-acp-v2/client";import{jsx as l,jsxs as f,Fragment as x}from"react/jsx-runtime";var p=[];function Qt({sessionId:s}){let n=o((t)=>t.sessions),{host:u}=e(),d=o((t)=>t.actions),a=d.some((t)=>m(n,s,t.sessionId))?d.filter((t)=>m(n,s,t.sessionId)):p,i=a.filter(Ge).filter((t)=>{if(t.sessionId!==s||n[s]?.subagent!==void 0)return!0;let r=t.params._meta?.codex;return!(typeof r==="object"&&r!==null&&("delivery"in r)&&r.delivery==="async")}),c=a.filter((t)=>!Ge(t));return f(x,{children:[c.length>0&&l("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:c.map((t)=>f("div",{children:[t.sessionId!==s&&l("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:t.sessionId===null?"":n[t.sessionId]?.title??u.t("subagents.untitled")}),l(Ne,{action:t})]},t.id))}),i[0]!==void 0&&l(rt,{action:i[0],total:i.length},i[0].id)]})}
2
- export{Qt};
1
+ import{o}from"./chunk-73e9vpm9.js";import{e}from"./chunk-esbgn8q0.js";import{et,ht,Fe}from"./chunk-ta6rbxh5.js";import{inSessionTree as m}from"@nyssance/codex-acp-v2/client";import{jsx as l,jsxs as f,Fragment as x}from"react/jsx-runtime";var p=[];function rn({sessionId:s}){let n=o((t)=>t.sessions),{host:u}=e(),d=o((t)=>t.actions),a=d.some((t)=>m(n,s,t.sessionId))?d.filter((t)=>m(n,s,t.sessionId)):p,i=a.filter(et).filter((t)=>{if(t.sessionId!==s||n[s]?.subagent!==void 0)return!0;let r=t.params._meta?.codex;return!(typeof r==="object"&&r!==null&&("delivery"in r)&&r.delivery==="async")}),c=a.filter((t)=>!et(t));return f(x,{children:[c.length>0&&l("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-3 px-6 pb-3","data-session-actions":!0,children:c.map((t)=>f("div",{children:[t.sessionId!==s&&l("p",{className:"text-muted-foreground mb-1 truncate text-xs",children:t.sessionId===null?"":n[t.sessionId]?.title??u.t("subagents.untitled")}),l(Fe,{action:t})]},t.id))}),i[0]!==void 0&&l(ht,{action:i[0],total:i.length},i[0].id)]})}
2
+ export{rn};
@@ -1,2 +1,2 @@
1
- var Ya=280;function Ti({entries:i,gapPx:t,measuredHeightsByKey:o,leadingInsetPx:e=0}){let n=[],r=[],d=new Map,s=[],u=e;for(let[x,a]of i.entries()){d.set(a.turnKey,x);for(let h of a.aliases??[])d.set(h,x);s.push(a.turnKey),r.push(u);let f=a.aliases?.map((h)=>o[h]).find((h)=>h!==void 0),m=o[a.turnKey]??f??a.estimatedHeightPx??280;if(n.push(m),u+=m,x<i.length-1)u+=t}return{bottomOffsetsPx:r.map((x,a)=>{let f=n[a];if(f===void 0)throw Error(`Codex turn height is missing at index ${a}`);return u-x-f}),heightsPx:n,topOffsetsPx:r,totalHeightPx:u,turnIndexByKey:d,turnKeys:s}}function $e({distanceFromBottomPx:i,layout:t,overscanCount:o,viewportHeightPx:e}){if(t.turnKeys.length===0)return{startIndex:0,endIndex:0};let n=Math.min(Math.max(0,i),t.totalHeightPx),r=Math.min(n+Math.max(0,e),t.totalHeightPx),d=g(t.bottomOffsetsPx,r),s=l(t.bottomOffsetsPx,t.heightsPx,n);return{startIndex:Math.max(0,d-o),endIndex:Math.min(t.turnKeys.length,Math.max(s,d+1)+o)}}function $n({anchorKey:i,layout:t,previousRange:o}){let e=t.turnIndexByKey.get(i);if(e===void 0)return null;return{startIndex:e,endIndex:Math.min(t.turnKeys.length,e+o.endIndex-o.startIndex)}}function Ni({anchorKey:i,distanceFromBottomPx:t,nextLayout:o,previousLayout:e}){let n=e.turnIndexByKey.get(i),r=o.turnIndexByKey.get(i);if(n===void 0||r===void 0)return null;let d=e.bottomOffsetsPx[n],s=e.heightsPx[n],u=o.bottomOffsetsPx[r],x=o.heightsPx[r];if(d===void 0||s===void 0||u===void 0||x===void 0)throw Error(`Codex turn geometry is missing: ${i}`);return Math.max(0,t+u+x-d-s)}function Mi({layout:i,turnKey:t,viewportHeightPx:o}){let e=i.turnIndexByKey.get(t);if(e===void 0)return null;let n=i.bottomOffsetsPx[e],r=i.heightsPx[e];if(n===void 0||r===void 0)throw Error(`Codex turn geometry is missing: ${t}`);return Math.max(0,n-o/2+r/2)}function Ai({align:i,layout:t,targetHeightPx:o,targetOffsetPx:e,turnKey:n,viewportHeightPx:r}){let d=t.turnIndexByKey.get(n);if(d===void 0)return null;let s=t.bottomOffsetsPx[d],u=t.heightsPx[d];if(s===void 0||u===void 0)throw Error(`Codex turn geometry is missing: ${n}`);let x=s+u-e;return i==="top"?Math.max(0,x-r+10):Math.max(0,x-o/2-r/2)}function g(i,t){let o=0,e=i.length;while(o<e){let n=Math.floor((o+e)/2),r=i[n];if(r===void 0)throw Error(`Codex bottom offset is missing at index ${n}`);if(r<t)e=n;else o=n+1}return o}function l(i,t,o){let e=0,n=i.length;while(e<n){let r=Math.floor((e+n)/2),d=i[r],s=t[r];if(d===void 0||s===void 0)throw Error(`Codex turn geometry is missing at index ${r}`);if(d+s<=o)n=r;else e=r+1}return e}
2
- export{Ya,Ti,$e,$n,Ni,Mi,Ai};
1
+ var il=280;function Cr({entries:i,gapPx:t,measuredHeightsByKey:o,leadingInsetPx:e=0}){let n=[],r=[],d=new Map,s=[],u=e;for(let[x,a]of i.entries()){d.set(a.turnKey,x);for(let h of a.aliases??[])d.set(h,x);s.push(a.turnKey),r.push(u);let f=a.aliases?.map((h)=>o[h]).find((h)=>h!==void 0),m=o[a.turnKey]??f??a.estimatedHeightPx??280;if(n.push(m),u+=m,x<i.length-1)u+=t}return{bottomOffsetsPx:r.map((x,a)=>{let f=n[a];if(f===void 0)throw Error(`Codex turn height is missing at index ${a}`);return u-x-f}),heightsPx:n,topOffsetsPx:r,totalHeightPx:u,turnIndexByKey:d,turnKeys:s}}function rt({distanceFromBottomPx:i,layout:t,overscanCount:o,viewportHeightPx:e}){if(t.turnKeys.length===0)return{startIndex:0,endIndex:0};let n=Math.min(Math.max(0,i),t.totalHeightPx),r=Math.min(n+Math.max(0,e),t.totalHeightPx),d=g(t.bottomOffsetsPx,r),s=l(t.bottomOffsetsPx,t.heightsPx,n);return{startIndex:Math.max(0,d-o),endIndex:Math.min(t.turnKeys.length,Math.max(s,d+1)+o)}}function Po({anchorKey:i,layout:t,previousRange:o}){let e=t.turnIndexByKey.get(i);if(e===void 0)return null;return{startIndex:e,endIndex:Math.min(t.turnKeys.length,e+o.endIndex-o.startIndex)}}function wr({anchorKey:i,distanceFromBottomPx:t,nextLayout:o,previousLayout:e}){let n=e.turnIndexByKey.get(i),r=o.turnIndexByKey.get(i);if(n===void 0||r===void 0)return null;let d=e.bottomOffsetsPx[n],s=e.heightsPx[n],u=o.bottomOffsetsPx[r],x=o.heightsPx[r];if(d===void 0||s===void 0||u===void 0||x===void 0)throw Error(`Codex turn geometry is missing: ${i}`);return Math.max(0,t+u+x-d-s)}function kr({layout:i,turnKey:t,viewportHeightPx:o}){let e=i.turnIndexByKey.get(t);if(e===void 0)return null;let n=i.bottomOffsetsPx[e],r=i.heightsPx[e];if(n===void 0||r===void 0)throw Error(`Codex turn geometry is missing: ${t}`);return Math.max(0,n-o/2+r/2)}function Sr({align:i,layout:t,targetHeightPx:o,targetOffsetPx:e,turnKey:n,viewportHeightPx:r}){let d=t.turnIndexByKey.get(n);if(d===void 0)return null;let s=t.bottomOffsetsPx[d],u=t.heightsPx[d];if(s===void 0||u===void 0)throw Error(`Codex turn geometry is missing: ${n}`);let x=s+u-e;return i==="top"?Math.max(0,x-r+10):Math.max(0,x-o/2-r/2)}function g(i,t){let o=0,e=i.length;while(o<e){let n=Math.floor((o+e)/2),r=i[n];if(r===void 0)throw Error(`Codex bottom offset is missing at index ${n}`);if(r<t)e=n;else o=n+1}return o}function l(i,t,o){let e=0,n=i.length;while(e<n){let r=Math.floor((e+n)/2),d=i[r],s=t[r];if(d===void 0||s===void 0)throw Error(`Codex turn geometry is missing at index ${r}`);if(d+s<=o)n=r;else e=r+1}return e}
2
+ export{il,Cr,rt,Po,wr,kr,Sr};
@@ -0,0 +1,2 @@
1
+ import{yi}from"./chunk-bba9qej8.js";import{createContext as r,useContext as i}from"react";import{jsx as s}from"react/jsx-runtime";var n=r(null);function na({host:o,children:t}){return s(n,{value:o,children:t})}function A(){let o=i(n),e={...yi(),...o};if(e.t===void 0||e.i18n===void 0)throw Error("Collection host is missing; mount collections inside SessionListProvider or CollectionHostProvider");return e}function hi(o,t){t.catch((e)=>{if(o.reportError)o.reportError(e);else console.error(e)})}function pe(){let o=A();return(t)=>hi(o,t)}function vi(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent)}
2
+ export{na,A,hi,pe,vi};